target_compile_options(nana PUBLIC -static -static-libstdc++) for MINGW too
This commit is contained in:
parent
d96efd11a6
commit
fbffbcd75d
@ -55,9 +55,7 @@ target_compile_features(nana
|
||||
# target_link_libraries(yourApp PRIVATE nana )
|
||||
|
||||
set(NANA_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/source)
|
||||
|
||||
set(NANA_SOURCE_SUBDIRS
|
||||
/.
|
||||
set(NANA_SOURCE_SUBDIRS /.
|
||||
/detail
|
||||
/detail/posix
|
||||
/filesystem
|
||||
@ -88,9 +86,7 @@ target_sources(nana PRIVATE ${SOURCES})
|
||||
# To show .h files in Visual Studio, add them to the list of sources in add_executable / add_library / target_sources
|
||||
# and Use SOURCE_GROUP if all your sources are in the same directory
|
||||
set(NANA_INCLUDE_DIR ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||
|
||||
set(NANA_INCLUDE_SUBDIRS
|
||||
/.
|
||||
set(NANA_INCLUDE_SUBDIRS /.
|
||||
/filesystem
|
||||
/gui
|
||||
/gui/detail
|
||||
|
@ -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()
|
Loading…
x
Reference in New Issue
Block a user