update for eisgenerator compat

This commit is contained in:
Carl Philipp Klemm
2024-09-30 10:04:00 +02:00
parent e9d6869500
commit eb39967226
2 changed files with 45 additions and 4 deletions

View File

@ -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)