blob: 4a0a036b1d40a63b855e74d219d48a18d6e0c715 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
--- CMakeLists.txt.orig 2016-01-04 20:44:44.010023206 +0800
+++ CMakeLists.txt 2016-01-04 20:45:34.910024088 +0800
@@ -219,11 +219,11 @@
if(NOT MSVC)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -D_DEBUG")
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -Os -D_NDEBUG")
- set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -D_NDEBUG")
+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -D_NDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O2 -g -D_NDEBUG")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -D_DEBUG")
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Os -D_NDEBUG")
- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 -D_NDEBUG")
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2 -D_NDEBUG")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O2 -g -D_NDEBUG")
# Disable some warnings
@@ -634,12 +634,12 @@
if (NOT MSVC)
# These can be fast even for debug.
if(NOT SNAPPY_FOUND)
- set_target_properties(snappy PROPERTIES COMPILE_FLAGS "-O3")
+ set_target_properties(snappy PROPERTIES COMPILE_FLAGS "-O2")
endif()
- set_target_properties(udis86 PROPERTIES COMPILE_FLAGS "-O3")
- set_target_properties(cityhash PROPERTIES COMPILE_FLAGS "-O3")
+ set_target_properties(udis86 PROPERTIES COMPILE_FLAGS "-O2")
+ set_target_properties(cityhash PROPERTIES COMPILE_FLAGS "-O2")
if(NOT ZLIB_FOUND)
- set_target_properties(zlib PROPERTIES COMPILE_FLAGS "-O3")
+ set_target_properties(zlib PROPERTIES COMPILE_FLAGS "-O2")
endif()
endif()
|