Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 357 Bytes
# Adapated from ITKv4/CMake/PreventInBuildInstalls.cmake
string(TOLOWER "${CMAKE_INSTALL_PREFIX}" _PREFIX)
string(TOLOWER "${Slicer_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()