update for eisgenerator compat
This commit is contained in:
@ -7,7 +7,11 @@ set(COMMON_SRC_FILES
|
||||
src/common.cpp
|
||||
)
|
||||
|
||||
set(COMMON_LINK_LIBRARIES -leisgenerator)
|
||||
if(WIN32)
|
||||
set(COMMON_LINK_LIBRARIES -leisgenerator_static -static-libgcc -static-libstdc++ -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive -Bdynamic)
|
||||
else()
|
||||
set(COMMON_LINK_LIBRARIES -leisgenerator)
|
||||
endif()
|
||||
|
||||
add_compile_options(
|
||||
"-Wall"
|
||||
@ -24,7 +28,7 @@ set_property(TARGET madaptoeis PROPERTY CXX_STANDARD 17)
|
||||
install(TARGETS madaptoeis RUNTIME DESTINATION bin)
|
||||
|
||||
add_executable(relaxistoeis ${COMMON_SRC_FILES} src/relaxis.cpp)
|
||||
target_link_libraries(relaxistoeis ${COMMON_LINK_LIBRARIES} -lrelaxisloaderpp)
|
||||
target_link_libraries(relaxistoeis -lrelaxisloaderpp -Wl,-allow-multiple-definition ${COMMON_LINK_LIBRARIES})
|
||||
set_property(TARGET relaxistoeis PROPERTY CXX_STANDARD 17)
|
||||
install(TARGETS relaxistoeis RUNTIME DESTINATION bin)
|
||||
|
||||
|
Reference in New Issue
Block a user