Try move static to the project scope

This commit is contained in:
zhupengfei
2020-05-17 08:17:12 +08:00
parent 87603d5d50
commit afc7a2cbe0
2 changed files with 13 additions and 12 deletions
+13
View File
@@ -128,6 +128,19 @@ elseif (CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU|SunOS)$")
set(PLATFORM_LIBRARIES rt)
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
# ===================
add_subdirectory(externals)