Files
CMake/Help/variable/CMAKE_CURRENT_SOURCE_DIR.rst
Brad King b768a5e23b Help: Disambiguate cmake(1) program modes in Sphinx option references
Define the entry point to each mode as an option for the `cmake`
program, but reference the options for that mode as part of stand-in
`cmake-<mode>` programs.
2022-10-05 15:27:40 -04:00

13 lines
444 B
ReStructuredText

CMAKE_CURRENT_SOURCE_DIR
------------------------
The path to the source directory currently being processed.
This is the full path to the source directory that is currently being
processed by cmake.
When run in :option:`cmake -P` script mode, CMake sets the variables
:variable:`CMAKE_BINARY_DIR`, :variable:`CMAKE_SOURCE_DIR`,
:variable:`CMAKE_CURRENT_BINARY_DIR` and
:variable:`CMAKE_CURRENT_SOURCE_DIR` to the current working directory.