SOURCE_DIR

Added in version 3.7.

This read-only directory property reports absolute path to the source directory on which it is read.

© 2000–2024 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/prop_dir/SOURCE_DIR.html