linker fixes
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
2a8126e151
commit
6da591dd92
|
@ -102,11 +102,11 @@ endif ()
|
|||
if (STATICC)
|
||||
message(STATUS "Linking C statically.")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
|
||||
SET(_LIBRARYLINKS ${_LIBRARYLINKS} -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread)
|
||||
SET(_LIBRARYLINKS ${_LIBRARYLINKS} -static-libgcc -static-libstdc++)
|
||||
endif ()
|
||||
|
||||
# And link the libraries together
|
||||
target_link_libraries(CreatureLib PUBLIC ${_LIBRARYLINKS} Threads::Threads)
|
||||
target_link_libraries(CreatureLib PUBLIC ${_LIBRARYLINKS})
|
||||
|
||||
if (CREATURELIB_TESTS)
|
||||
CPMAddPackage(
|
||||
|
|
Loading…
Reference in New Issue