xref: /aosp_15_r20/external/jsoncpp/include/PreventInBuildInstalls.cmake (revision 4484440890e2bc6e07362b4feaf15601abfe0071)
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