BINARY_DIR

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


BINARY_DIR

New in version 3.7.


This read-only directory property reports absolute path to the binary directory corresponding to the source 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/BINARY_DIR.html