blob: 93817e209376bc65ed4151527fcca1bd278585da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
index f6224a6..8c7c45e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -203,17 +203,9 @@ if (NOT MSVC)
add_compile_options( -g)
add_compile_options( -pthread )
- add_compile_options("$<$<CONFIG:RELWITHDEBINFO>:-O2>")
-
- add_compile_options("$<$<CONFIG:RELEASE>:-O2>")
add_compile_options("$<$<CONFIG:RELEASE>:-g0>")
add_compile_options("$<$<CONFIG:DEBUG>:-O0>")
-
- if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -O2")
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -O2")
- endif()
else()
# see https://msdn.microsoft.com/en-us/library/fwkeyyhe.aspx for details
# /ZI = include debug info
|