View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011343CMakeCMakepublic2010-10-20 15:352011-04-04 12:00
Reporterkentwilliams 
Assigned ToBrad King 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionduplicate 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in VersionCMake 2.8.4 
Summary0011343: A built-in facility to disallow in-source builds would be a useful feature
DescriptionIt is possible (and it is done on multiple projects) to disallow configuring a source tree as a build directory. The only problem is that testing for CMAKE_CURRENT_SOURCE_DIR != CMAKE_CURRENT_BINARY_DIR doesn't happen before CMake creates the CMakeCache.txt file and CMakeFiles directory.

This is a problem because if CMake detects its own config/build files in a source directory, it will act as though it has configured an out-of-source build directory, but a build in the out-of-source directory will fail.

What's needed is a 'magic' option to disallow out of source builds, that will get checked before creating any files in the source directory.
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0006672closedKitware Robot Detect In-Source build BEFORE creating CMakeCache.txt 

  Notes
(0024124)
David Cole (manager)
2010-12-14 19:06

Monitor the duplicate bug id if you want to know when it gets fixed.
(0026048)
David Cole (manager)
2011-04-04 12:00

Closing resolved issues that have not been updated in more than 3 months.

 Issue History
Date Modified Username Field Change
2010-10-20 15:35 kentwilliams New Issue
2010-10-21 09:26 Eric NOULARD Relationship added duplicate of 0006672
2010-12-14 19:05 David Cole Assigned To => Brad King
2010-12-14 19:05 David Cole Status new => assigned
2010-12-14 19:06 David Cole Note Added: 0024124
2010-12-14 19:06 David Cole Status assigned => resolved
2010-12-14 19:06 David Cole Fixed in Version => CMake 2.8.4
2010-12-14 19:06 David Cole Resolution open => duplicate
2011-04-04 12:00 David Cole Note Added: 0026048
2011-04-04 12:00 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team