vcpkg/ports/shogun/remove_cmake_flags.patch

24 lines
858 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 94c8389f96..d4d533301a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -192,12 +192,12 @@ IF(MSVC)
# SET(CMAKE_CXX_FLAGS_DEBUG "/DEBUG /Od /Zi")
add_compile_options("/bigobj")
ELSE()
- SET(CMAKE_C_FLAGS_RELEASE "-O3 ${RELEASE_COMPILER_FLAGS}")
- SET(CMAKE_CXX_FLAGS_RELEASE "-O3 ${RELEASE_COMPILER_FLAGS}")
- SET(CMAKE_C_FLAGS_DISTRIBUTION "-O2")
- SET(CMAKE_CXX_FLAGS_DISTRIBUTION "-O2")
- SET(CMAKE_C_FLAGS_DEBUG "-g")
- SET(CMAKE_CXX_FLAGS_DEBUG "-g")
+ #SET(CMAKE_C_FLAGS_RELEASE "-O3 ${RELEASE_COMPILER_FLAGS}")
+ #SET(CMAKE_CXX_FLAGS_RELEASE "-O3 ${RELEASE_COMPILER_FLAGS}")
+ #SET(CMAKE_C_FLAGS_DISTRIBUTION "-O2")
+ #SET(CMAKE_CXX_FLAGS_DISTRIBUTION "-O2")
+ #SET(CMAKE_C_FLAGS_DEBUG "-g")
+ #SET(CMAKE_CXX_FLAGS_DEBUG "-g")
ENDIF()
OPTION(ENABLE_COVERAGE "Enable code coverage" OFF)