From 96525cf3c36650e2257f37a63d61a1244e4aa486 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 12 May 2008 16:54:43 -0400 Subject: BUG: make "cmake -Wno-dev ../srcdir" work, advancing i had the effect that the argument after -Wno-dev was skipped, which happened to be the source directory, and so the current working directory was assumed as source directory, although it was the build directory (maybe this didn't have an effect if there was already a CMakeCache.txt in the build dir) Alex --- Source/cmake.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 08fbe9d..6971204 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -592,12 +592,10 @@ void cmake::SetArgs(const std::vector& args) else if(arg.find("-Wno-dev",0) == 0) { // skip for now - i++; } else if(arg.find("-Wdev",0) == 0) { // skip for now - i++; } else if(arg.find("--graphviz=",0) == 0) { @@ -3507,7 +3505,7 @@ void cmake::ReportUndefinedPropertyAccesses(const char *filename) scopeStr = "unknown"; break; } - fprintf(progFile,"%s with scope %s\n",ap->first.c_str(),scopeStr); + fprintf(progFile, "%s with scope %s\n", ap->first.c_str(), scopeStr); } } fclose(progFile); -- cgit v0.12