[cmake-developers] [CMake 0015769]: Change of CMakeLists.txt doesn't trigger reconfigure
Mantis Bug Tracker
mantis at public.kitware.com
Mon Oct 5 10:37:39 EDT 2015
The following issue has been SUBMITTED.
======================================================================
https://public.kitware.com/Bug/view.php?id=15769
======================================================================
Reported By: Ruslan Baratov
Assigned To:
======================================================================
Project: CMake
Issue ID: 15769
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-10-05 10:37 EDT
Last Modified: 2015-10-05 10:37 EDT
======================================================================
Summary: Change of CMakeLists.txt doesn't trigger reconfigure
Description:
`cmake --build` command doesn't trigger reconfiguration of the project on OS X
when CMakeLists.txt changed.
Example:
add_executable(foo foo.cpp) # file foo.cpp exists
cmake -H. -B_builds
cmake --build _builds
# OK
change:
add_executable(foo foo.cpp boo.cpp) # file boo.cpp not exists
cmake --build _builds
# expected error, but no error reported
Ready-to-run example can be found:
https://github.com/forexample/cmake-osx-no-reconfigure-bug
Log from OS X machine:
* https://travis-ci.org/forexample/cmake-osx-no-reconfigure-bug/builds/83701171
Log for similar test on Linux machine:
* https://travis-ci.org/forexample/cmake-osx-no-reconfigure-bug/builds/83702953
CMake on Linux machine run reconfigure command and report an error:
cmake -H. -B_builds --check-build-system CMakeFiles/Makefile.cmake 0
-- Configuring done
CMake Error at CMakeLists.txt:4 (add_executable):
Cannot find source file:
boo.cpp
same error expected on OS X machine
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-10-05 10:37 Ruslan Baratov New Issue
======================================================================
More information about the cmake-developers
mailing list