~ubuntu-branches/debian/sid/simpleitk/sid

« back to all changes in this revision

Viewing changes to CMake/sitkPreventInBuildInstalls.cmake

  • Committer: Package Import Robot
  • Author(s): Ghislain Antony Vaillant
  • Date: 2017-11-02 08:49:18 UTC
  • Revision ID: package-import@ubuntu.com-20171102084918-7hs09ih668xq87ej
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
string(TOLOWER "${CMAKE_INSTALL_PREFIX}" _PREFIX)
 
2
string(TOLOWER "${ITK_BINARY_DIR}" _BUILD)
 
3
if("${_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
    )
 
9
endif()