The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=11343 ====================================================================== Reported By: kentwilliams Assigned To: ====================================================================== Project: CMake Issue ID: 11343 Category: CMake Reproducibility: always Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 2010-10-20 15:35 EDT Last Modified: 2010-10-20 15:35 EDT ====================================================================== Summary: A built-in facility to disallow in-source builds would be a useful feature Description: It 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. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2010-10-20 15:35 kentwilliams New Issue ====================================================================== _______________________________________________ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers