Skip to content

Help: Clarify the use of PROJECT_SOURCE_DIR

Nicolas Bock requested to merge nicolasbock/cmake:doc_update into master

The value of the PROJECT_SOURCE_DIR variable is not always the source directory of the "most recent project command". If the project was included via add_subdirectory, variable scoping will prevent this value to change in the parent scope.

Signed-off-by: Nicolas Bock nicolasbock@gmail.com
Topic-rename: doc-PROJECT_SOURCE_DIR

Edited by Craig Scott

Merge request reports