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("$<$:-O2>") - - add_compile_options("$<$:-O2>") add_compile_options("$<$:-g0>") add_compile_options("$<$:-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