On Thu, May 1, 2014 at 1:54 PM, Glenn Coombs <glenn.coo...@gmail.com> wrote: > What I am saying is that project("foo") should internally execute the > equivalent of set(foo_SOURCE_DIR "/path/to/source") rather than set(foo > "/path/to/source" CACHE STRING). That way it would fail on every run if you > referenced a project source directory variable before you had done the > add_subdirectory() for that project. Currently in that situation it fails > the first time you run cmake but works as expected on subsequent runs of > cmake, which I think is odd behaviour. >
I am saying making this change to not cache the source folder would break cmake binfolder and cmake --build buildfolder and several other commands that have worked this way for years. John -- 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://www.cmake.org/mailman/listinfo/cmake