zeek/auxil/binpac/cmake/ProhibitInSourceBuild.cmake
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

8 lines
291 B
CMake

# Prohibit in-source builds.
if ("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
message(
FATAL_ERROR
"In-source builds are not allowed. Please use "
"./configure to choose a build directory and " "initialize the build configuration.")
endif ()