summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-01-10 15:22:31 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-01-10 15:22:31 (GMT)
commit281f3d9579ac3b2559e8e2028cbcfd33d83e8dac (patch)
treee796f06e968bf8a509963d5ac25b5b875c0a8d5c
parent2341470673294badb4eb4447f6878cef21f01b81 (diff)
parentc77281061c1b931842d5f0a03fc68b3f16999a5b (diff)
downloadCMake-281f3d9579ac3b2559e8e2028cbcfd33d83e8dac.zip
CMake-281f3d9579ac3b2559e8e2028cbcfd33d83e8dac.tar.gz
CMake-281f3d9579ac3b2559e8e2028cbcfd33d83e8dac.tar.bz2
Merge topic 'use-wundef'
c772810 Add the -Wundef flag when compiling CMake.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9ad9587..e84f898 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -588,10 +588,10 @@ if(NOT CMake_VERSION_IS_RELEASE)
NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS 4.2)
set(C_FLAGS_LIST -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts
-Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security
- -Wmissing-format-attribute -fno-common
+ -Wmissing-format-attribute -fno-common -Wundef
)
set(CXX_FLAGS_LIST -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W
- -Wshadow -Wpointer-arith -Wformat-security
+ -Wshadow -Wpointer-arith -Wformat-security -Wundef
)
foreach(FLAG_LANG C CXX)