1string(TOLOWER "${CMAKE_INSTALL_PREFIX}" _PREFIX)
2string(TOLOWER "${ITK_BINARY_DIR}" _BUILD)
3if("${_PREFIX}" STREQUAL "${_BUILD}")
4 message(FATAL_ERROR
5 "The current CMAKE_INSTALL_PREFIX points at the build tree:\n"
6 " ${CMAKE_INSTALL_PREFIX}\n"
7 "This is not supported."
8 )
9endif()
10