[cmake-developers] CMAKE_HOME_DIRECTORY vs CMAKE_SOURCE_DIR
Brad King
brad.king at kitware.com
Tue Jan 29 06:49:42 EST 2019
On 1/29/19 5:37 AM, Joachim Wuttke wrote:
> how do these two relate to each other?
Their value is the same, but CMAKE_SOURCE_DIR is a normal CMake
variable intended for use by projects. CMAKE_HOME_DIRECTORY
is an internal cache entry used to locate the source directory
when loading a `CMakeCache.txt` from a build tree.
CMAKE_HOME_DIRECTORY's presence in the modern documentation
looks historical and accidental. It should either be removed
or updated to be described as internal to CMake.
Thanks,
-Brad
More information about the cmake-developers
mailing list