if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") message( FATAL_ERROR "In source builds are disallowed." "Create a separate build directory and build from there." "e.g. `cmake -S . -B build && cmake --build build`." ) endif()