mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 19:09:00 +08:00
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 7a22b56..2ce1bd8 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -47,24 +47,11 @@ set(CMAKE_CXX_STANDARD 11)
|
||
|
set(CMAKE_CONFIGURATION_TYPES Debug Release)
|
||
|
|
||
|
# Default compile flags
|
||
|
-set(CMAKE_CXX_FLAGS
|
||
|
- "/DWIN32 /D_WINDOWS /W3 /WX /GR /GS- /Gy /FAcs /Z7 /DEBUG"
|
||
|
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GS-"
|
||
|
CACHE STRING "default C++ compile flags" FORCE)
|
||
|
-set(CMAKE_CXX_FLAGS_DEBUG
|
||
|
- "/MTd /Ob0 /Od"
|
||
|
- CACHE STRING "default C++ compile flags for debug build" FORCE)
|
||
|
-set(CMAKE_CXX_FLAGS_RELEASE
|
||
|
- "/MT /O2 /Ob2 /DNDEBUG"
|
||
|
- CACHE STRING "default C++ compile flags for release build" FORCE)
|
||
|
-set(CMAKE_C_FLAGS
|
||
|
- "/DWIN32 /D_WINDOWS /W3 /WX /GR /GS- /Gy /FAcs /Z7 /DEBUG"
|
||
|
+set(CMAKE_C_FLAGS
|
||
|
+ "${CMAKE_C_FLAGS} /GS-"
|
||
|
CACHE STRING "default C++ compile flags" FORCE)
|
||
|
-set(CMAKE_C_FLAGS_DEBUG
|
||
|
- "/MTd /Ob0 /Od"
|
||
|
- CACHE STRING "default C++ compile flags for debug build" FORCE)
|
||
|
-set(CMAKE_C_FLAGS_RELEASE
|
||
|
- "/MT /O2 /Ob2 /DNDEBUG"
|
||
|
- CACHE STRING "default C++ compile flags for release build" FORCE)
|
||
|
|
||
|
message(STATUS "CMAKE_CXX_FLAGS=" ${CMAKE_CXX_FLAGS})
|
||
|
message(STATUS "CMAKE_CXX_FLAGS_DEBUG=" ${CMAKE_CXX_FLAGS_DEBUG})
|