target_compile_options(nana PUBLIC -static -static-libstdc++) for MINGW too
This commit is contained in:
@@ -40,12 +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()
|
||||
|
||||
if(MINGW)
|
||||
target_compile_options(nana PUBLIC -static) # -static ?? cmake knows BUILD_SHARED_LIBS
|
||||
else()
|
||||
target_compile_options(nana PUBLIC -static-libgcc -static-libstdc++)
|
||||
endif()
|
||||
target_compile_options(nana PUBLIC -static -static-libstdc++)
|
||||
endif(BUILD_SHARED_LIBS)
|
||||
|
||||
endif()
|
||||
Reference in New Issue
Block a user