[cmake-developers] [CMake 0011888]: Using external inputs to any build commands results in broken dependencies
Mantis Bug Tracker
mantis at public.kitware.com
Tue Feb 22 16:57:14 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=11888
======================================================================
Reported By: litghost
Assigned To:
======================================================================
Project: CMake
Issue ID: 11888
Category: CMake
Reproducibility: always
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2011-02-22 16:57 EST
Last Modified: 2011-02-22 16:57 EST
======================================================================
Summary: Using external inputs to any build commands results
in broken dependencies
Description:
Using FILE(READ or variants to read in inputs to any build commands (i.e.
add_definitions) results does not result in build system dependencies. There
does not appear to be a way to add a dependency on the build system to external
files.
Steps to Reproduce:
See attached example.
Imagine an external command writes the "defines.txt" which is a newline
separated list of definitions. I want the CMake build system to see that
defines.txt is newer than the last reconfiguration and regenerate the definition
list.
Steps to reproduce with example:
1. Extract attached tar
2. Run "cmake ." in the directory with the extracted files
3. Run "make" command and observe the expected error "TEST_DEFINED not defined"
4. Append TEST_DEFINED to defines.txt (echo "TEST_DEFINED" >> defines.txt)
5. Run "make" command and observe that the error has not gone away, even though
the definition is now listed in defines.txt because the CMake system has not
re-read "defines.txt"
6. Touch CMakeLists.txt and run make. Observe that the error has gone away
because the CMake system re-read "defines.txt" during the config pass.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-02-22 16:57 litghost New Issue
2011-02-22 16:57 litghost File Added: test.tar
======================================================================
More information about the cmake-developers
mailing list