The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=15036 ====================================================================== Reported By: Simon Ask Ulsnes Assigned To: ====================================================================== Project: CMake Issue ID: 15036 Category: (No Category) Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2014-07-24 05:48 EDT Last Modified: 2014-07-24 05:48 EDT ====================================================================== Summary: "make --question" always returns 1 Description: In my project, I'm relying on the build system being able to answer the question whether or not the source tree has been updated or not. Currently, Makefiles generated by CMake do not support this usage for one reason or another.
The exit code of "make --question" should be 0 if all targets (or the specified target) are up to date, and nonzero if changes have been made. However, CMake-generated Makefiles always indicate that changes have been made, which results in nontrivial work being executed unnecessarily. Steps to Reproduce: 1. Create simple project with a single source file and a CMakeLists.txt 2. Create the Makefile with `cmake .` 3. Run `make`. 4. Run `make --question`. 5. Observe that the exit code is 1 instead of 0, even though the source file was not updated between steps 3 and 4. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2014-07-24 05:48 Simon Ask UlsnesNew Issue ====================================================================== -- 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
