From b5cebc00f7a4ebc28a903f056fab2b0a799f1ad3 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 11 Mar 2008 16:02:10 -0400 Subject: [PATCH] ENH: fix -Wno-dev for ccmake --- Source/cmake.h | 9 ++++++++- Source/cmakemain.cxx | 6 ------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Source/cmake.h b/Source/cmake.h index b8ca27f86..3670b4a20 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -471,7 +471,14 @@ private: "CMake may support multiple native build systems on certain platforms. " \ "A makefile generator is responsible for generating a particular build " \ "system. Possible generator names are specified in the Generators " \ - "section."} + "section."},\ + {"-Wno-dev", "Suppress developer warnings.",\ + "Suppress warnings that are meant for the author"\ + " of the CMakeLists.txt files."},\ + {"-Wdev", "Enable developer warnings.",\ + "Enable warnings that are meant for the author"\ + " of the CMakeLists.txt files."} + #define CMAKE_STANDARD_INTRODUCTION \ {0, \ diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 51585ae97..7f291c550 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -81,12 +81,6 @@ static const char * cmDocumentationOptions[][3] = "variables being created. If A is specified, then it will display also " "advanced variables. If H is specified, it will also display help for " "each variable."}, - {"-Wno-dev", "Suppress developer warnings.", - "Suppress warnings that are meant for the author" - " of the CMakeLists.txt files."}, - {"-Wdev", "Enable developer warnings.", - "Enable warnings that are meant for the author" - " of the CMakeLists.txt files."}, {"-N", "View mode only.", "Only load the cache. Do not actually run configure and generate steps."}, {"-P ", "Process script mode.",