mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-06 00:38:55 +00:00
Try move static to the project scope
This commit is contained in:
@@ -128,6 +128,19 @@ elseif (CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU|SunOS)$")
|
|||||||
set(PLATFORM_LIBRARIES rt)
|
set(PLATFORM_LIBRARIES rt)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
if (MINGW)
|
||||||
|
add_definitions(-DMINGW_HAS_SECURE_API)
|
||||||
|
if (COMPILE_WITH_DWARF)
|
||||||
|
add_compile_options("-gdwarf")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (MINGW_STATIC_BUILD)
|
||||||
|
add_definitions(-DQT_STATICPLUGIN)
|
||||||
|
add_compile_options("-static")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# Include source code
|
# Include source code
|
||||||
# ===================
|
# ===================
|
||||||
add_subdirectory(externals)
|
add_subdirectory(externals)
|
||||||
|
|||||||
@@ -96,18 +96,6 @@ else()
|
|||||||
add_definitions(-D_FILE_OFFSET_BITS=64)
|
add_definitions(-D_FILE_OFFSET_BITS=64)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MINGW)
|
|
||||||
add_definitions(-DMINGW_HAS_SECURE_API)
|
|
||||||
if (COMPILE_WITH_DWARF)
|
|
||||||
add_compile_options("-gdwarf")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (MINGW_STATIC_BUILD)
|
|
||||||
add_definitions(-DQT_STATICPLUGIN)
|
|
||||||
add_compile_options("-static")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# if (NOT DEBUG)
|
# if (NOT DEBUG)
|
||||||
# add_compile_options("-flto")
|
# add_compile_options("-flto")
|
||||||
# endif()
|
# endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user