---
In this version of the patch I've changed the message printed to give more
information on how '--build' should be used.

 Source/cmake.cxx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 8f6b952..95948d5 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -798,6 +798,12 @@ void cmake::SetArgs(const std::vector<std::string>& args,
         this->SetGlobalGenerator(gen);
         }
       }
+    else if (arg.find("--build", 0) == 0)
+      {
+      cmSystemTools::Message("Ignoring option '--build' "
+          "because it is meant to be used only "
+          "to drive an already-generated project build system." , "Warning");
+      }
     // no option assume it is the path to the source
     else
       {
-- 
2.7.1

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to