[cmake-developers] [CMake 0015537]: CTestTargets.cmake interferes with source trees that use directory structures nested under a "testing" directory
Mantis Bug Tracker
mantis at public.kitware.com
Mon Apr 27 07:09:55 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15537
======================================================================
Reported By: Jamie Kirkpatrick
Assigned To:
======================================================================
Project: CMake
Issue ID: 15537
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-04-27 07:09 EDT
Last Modified: 2015-04-27 07:09 EDT
======================================================================
Summary: CTestTargets.cmake interferes with source trees that
use directory structures nested under a "testing" directory
Description:
If you have a project that uses a directory structure with a top-level directory
called "testing" and some nested directories with CMakeLists.txt files in those
directories you can get unexpected results. Namely that the first time you run
cmake, targets defined in those directories will not be set up correctly.
Steps to Reproduce:
Download the attached test-case: in the root directory of the project run the
following command:
mkdir build && cd build && cmake -GNinja .. && ninja custom_target
Ninja will report that it has "nothing to do"
Additional Information:
The problem seems to boil down to the presence of this line in
CTestTargets.cmake
# make directories in the binary tree
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/Testing/Temporary)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-04-27 07:09 Jamie KirkpatrickNew Issue
2015-04-27 07:09 Jamie KirkpatrickFile Added: cmake-bug.zip
======================================================================
More information about the cmake-developers
mailing list