[Cmake-commits] CMake branch, next, updated. v2.8.10-781-gf2de1ac
Stephen Kelly
steveire at gmail.com
Tue Nov 6 13:45:10 EST 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via f2de1ac156e0440f6f9030b2d920174e4af0cc74 (commit)
via 7d97d9bcd0d6c3d32f03e14feaf49749cfdf417f (commit)
via b750bf86c4d57d29b1dc4e5cb0cf172c8aef105e (commit)
via 7c724031a770ad305d8b6a34f6f9d446fa89a361 (commit)
from 7c843c0de7214b9e8af046699066a50bf2043548 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f2de1ac156e0440f6f9030b2d920174e4af0cc74
commit f2de1ac156e0440f6f9030b2d920174e4af0cc74
Merge: 7c843c0 7d97d9b
Author: Stephen Kelly <steveire at gmail.com>
AuthorDate: Tue Nov 6 13:45:08 2012 -0500
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Nov 6 13:45:08 2012 -0500
Merge topic 'compiler-warnings' into next
7d97d9b Enable some compiler warnings when building CMake.
b750bf8 CMake Nightly Date Stamp
7c72403 CMake Nightly Date Stamp
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7d97d9bcd0d6c3d32f03e14feaf49749cfdf417f
commit 7d97d9bcd0d6c3d32f03e14feaf49749cfdf417f
Author: Stephen Kelly <steveire at gmail.com>
AuthorDate: Sun Sep 23 15:02:23 2012 +0200
Commit: Stephen Kelly <steveire at gmail.com>
CommitDate: Tue Nov 6 18:35:35 2012 +0100
Enable some compiler warnings when building CMake.
The warnings are enabled for now only when using GCC 4.2 or later.
It may be possible later to also enable them when building CMake
with clang.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea1c033..b22748d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -585,6 +585,20 @@ option(CMAKE_STRICT
"Perform strict testing to record property and variable access. Can be used to report any undefined properties or variables" OFF)
mark_as_advanced(CMAKE_STRICT)
+if(NOT CMake_VERSION_IS_RELEASE)
+ if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND
+ NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS 4.2)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
+
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -ansi -Wcast-align -Wchar-subscripts -Wall -W -Wshadow")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpointer-arith -Wformat-security")
+ if (NOT APPLE)
+ set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
+ set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined ${CMAKE_MODULE_LINKER_FLAGS}")
+ endif()
+ endif()
+endif()
# build the remaining subdirectories
add_subdirectory(Source)
-----------------------------------------------------------------------
Summary of changes:
CMakeLists.txt | 14 ++++++++++++++
Source/CMakeVersion.cmake | 2 +-
2 files changed, 15 insertions(+), 1 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list