SOURCE_DIR

From Get docs
Cmake/docs/3.21/prop dir/source dir


SOURCE_DIR

New in version 3.7.


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

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