Files
ox/deps/jsoncpp/include/PreventInBuildInstalls.cmake
T
gary 29ed3ec184 Squashed 'deps/ox/' content from commit 69957bd
git-subtree-dir: deps/ox
git-subtree-split: 69957bd7b2
2026-05-05 23:38:56 -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()