openbsd-ports/devel/cmake/patches/patch-Modules_Compiler_GNU_cmake
dcoppa 498b61a3b2 Update to cmake-2.8.8
OK sthen@
2012-05-07 07:06:20 +00:00

15 lines
890 B
Plaintext

$OpenBSD: patch-Modules_Compiler_GNU_cmake,v 1.3 2012/05/07 07:06:20 dcoppa Exp $
--- Modules/Compiler/GNU.cmake.orig Wed Apr 18 20:10:54 2012
+++ Modules/Compiler/GNU.cmake Mon Apr 30 11:07:25 2012
@@ -39,8 +39,8 @@ macro(__compiler_gnu lang)
# Initial configuration flags.
set(CMAKE_${lang}_FLAGS_INIT "")
set(CMAKE_${lang}_FLAGS_DEBUG_INIT "-g")
- set(CMAKE_${lang}_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
- set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
+ set(CMAKE_${lang}_FLAGS_MINSIZEREL_INIT "-DNDEBUG")
+ set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-DNDEBUG")
set(CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")