How can I pass CMake's CMAKE_SOURCE_DIR to C++ source files? – Ubuntu
In my C++ program I use std::source_location for log output. The printed path is currently absolute. The project is built with CMake. I want to shorten the std::source_location path according to the CMake variable CMAKE_SOURCE_DIR. How can I access CMAKE_SOURCE_DIR…