File: PreventInBuildInstalls.cmake

package info (click to toggle)
libjsoncpp 1.9.6-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,852 kB
  • sloc: cpp: 9,483; python: 1,118; ansic: 215; makefile: 44; sh: 30; perl: 5
file content (9 lines) | stat: -rw-r--r-- 297 bytes parent folder | download | duplicates (26)
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()