File: PreventInBuildInstalls.cmake

package info (click to toggle)
lapack 3.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 72,832 kB
  • ctags: 41,660
  • sloc: fortran: 581,236; ansic: 175,264; makefile: 4,428; python: 269; sh: 133
file content (9 lines) | stat: -rw-r--r-- 297 bytes parent folder | download | duplicates (28)
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()