cmake/Help/variable/CMAKE_CURRENT_SOURCE_DIR.rst

13 lines
428 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
CMAKE_CURRENT_SOURCE_DIR
------------------------
The path to the source directory currently being processed.
2022-03-29 21:10:50 +02:00
This is the full path to the source directory that is currently being
2014-08-03 19:52:23 +02:00
processed by cmake.
2016-03-13 13:35:51 +01:00
When run in -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.