gd-tools/cmake/prelude.cmake

11 lines
315 B
CMake
Raw Permalink Normal View History

2024-02-04 18:24:04 +00:00
# ---- In-source guard ----
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message(
FATAL_ERROR
"In-source builds are not supported. "
"Please read the BUILDING document before trying to build this project. "
"You may need to delete 'CMakeCache.txt' and 'CMakeFiles/' first."
)
endif()