Files
nostalgia/deps/jsoncpp/include/PreventInBuildInstalls.cmake
T
gary cc499028fb Squashed 'deps/ox/' content from commit d4807cd2
git-subtree-dir: deps/ox
git-subtree-split: d4807cd2a0cd64843824959c24479e1ba54459f0
2026-05-06 01:15:12 -05:00

10 lines
297 B
CMake

string(TOLOWER "${CMAKE_INSTALL_PREFIX}" _PREFIX)
string(TOLOWER "${ITK_BINARY_DIR}" _BUILD)
if("${_PREFIX}" STREQUAL "${_BUILD}")
message(FATAL_ERROR
"The current CMAKE_INSTALL_PREFIX points at the build tree:\n"
" ${CMAKE_INSTALL_PREFIX}\n"
"This is not supported."
)
endif()