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                    
======================================================================

-- 

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

Reply via email to