[cmake-developers] [CMake 0012275]: XCode generator does not remove generated files with the 'clean' target.
Mantis Bug Tracker
mantis at public.kitware.com
Wed Jun 15 07:07:29 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=12275
======================================================================
Reported By: Johan Björk
Assigned To:
======================================================================
Project: CMake
Issue ID: 12275
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-06-15 07:07 EDT
Last Modified: 2011-06-15 07:07 EDT
======================================================================
Summary: XCode generator does not remove generated files with
the 'clean' target.
Description:
Generated files don't get removed in the clean target when using the XCode
generator.
Steps to Reproduce:
Use following CMakeLists.txt
PROJECT(foo)
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/apa.cpp
COMMAND touch ${CMAKE_CURRENT_BINARY_DIR}/apa.cpp
)
ADD_CUSTOM_TARGET(foo ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/apa.cpp)
---
run
cmake -G Xcode ../
cmake --build . --config Release
cmake --build . --config Release --target clean
Observe that apa.cpp is still present in the build directory.
The same with the Makefile generator properly cleans up the generated file.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-06-15 07:07 Johan Björk New Issue
======================================================================
More information about the cmake-developers
mailing list