-static-libgcc ?

This commit is contained in:
qPCR4vir
2019-06-12 16:13:37 +02:00
parent 4818da59a8
commit 6a46ec4f52
2 changed files with 5 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") # AN
if(BUILD_SHARED_LIBS)
target_compile_options(nana PUBLIC -lgcc -lstdc++)
else()
target_link_libraries(nana PUBLIC -static -static-libstdc++)
target_link_libraries(nana PUBLIC -static-libgcc -static-libstdc++)
endif(BUILD_SHARED_LIBS)
endif()