diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2011-04-10 08:38:50 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2011-04-10 08:38:50 +0000 |
commit | feba34863acb668ef8f7cd8e3e4b4dee204ac830 (patch) | |
tree | cb413f02715b426c1650654b6a22ebf1f99c7ded /devel/cmake | |
parent | - update to 1.5.1 (diff) |
Remove cmake predefined cflags for Debug and Release build profiles,
and let cmake use system CFLAGS. RelWithDebInfo and MinSizeRel
profiles are leaved unchanged.
Notes
Notes:
svn path=/head/; revision=272459
Diffstat (limited to 'devel/cmake')
-rw-r--r-- | devel/cmake/Makefile | 1 | ||||
-rw-r--r-- | devel/cmake/files/patch-Modules_Compiler_GNU.cmake | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/devel/cmake/Makefile b/devel/cmake/Makefile index 2662cfcba5b9..b8a9c7a5919a 100644 --- a/devel/cmake/Makefile +++ b/devel/cmake/Makefile @@ -7,6 +7,7 @@ PORTNAME= cmake PORTVERSION= 2.8.4 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://www.${PORTNAME}.org/files/v${PORTVERSION:C/\.[[:digit:]]+$//}/ diff --git a/devel/cmake/files/patch-Modules_Compiler_GNU.cmake b/devel/cmake/files/patch-Modules_Compiler_GNU.cmake new file mode 100644 index 000000000000..06a5aadf5f67 --- /dev/null +++ b/devel/cmake/files/patch-Modules_Compiler_GNU.cmake @@ -0,0 +1,14 @@ +--- ./Modules/Compiler/GNU.cmake.orig 2011-02-15 20:47:27.000000000 +0300 ++++ ./Modules/Compiler/GNU.cmake 2011-04-09 13:43:24.030760248 +0400 +@@ -26,9 +26,9 @@ + + # Initial configuration flags. + set(CMAKE_${lang}_FLAGS_INIT "") +- set(CMAKE_${lang}_FLAGS_DEBUG_INIT "-g") ++ set(CMAKE_${lang}_FLAGS_DEBUG_INIT "") + set(CMAKE_${lang}_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") +- set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-O3 -DNDEBUG") ++ set(CMAKE_${lang}_FLAGS_RELEASE_INIT "") + 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>") |