PROJECT_SOURCE_DIR — CMake 4.2.1 Documentation (original) (raw)
This is the source directory of the last call to theproject() command made in the current directory scope or one of its parents. Note, it is not affected by calls toproject() made within a child directory scope (i.e. from within a call to add_subdirectory() from the current scope).