summaryrefslogtreecommitdiff
path: root/CMAKE/PreventInBuildInstalls.cmake
blob: accfea64c12f51e8f147de496cbb8f91d1b72b42 (plain)
1
2
3
4
5
6
7
8
9
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()