xref: /aosp_15_r20/external/jsoncpp/include/PreventInBuildInstalls.cmake (revision 4484440890e2bc6e07362b4feaf15601abfe0071)
1*44844408SAndroid Build Coastguard Workerstring(TOLOWER "${CMAKE_INSTALL_PREFIX}" _PREFIX)
2*44844408SAndroid Build Coastguard Workerstring(TOLOWER "${ITK_BINARY_DIR}" _BUILD)
3*44844408SAndroid Build Coastguard Workerif("${_PREFIX}" STREQUAL "${_BUILD}")
4*44844408SAndroid Build Coastguard Worker  message(FATAL_ERROR
5*44844408SAndroid Build Coastguard Worker    "The current CMAKE_INSTALL_PREFIX points at the build tree:\n"
6*44844408SAndroid Build Coastguard Worker    "  ${CMAKE_INSTALL_PREFIX}\n"
7*44844408SAndroid Build Coastguard Worker    "This is not supported."
8*44844408SAndroid Build Coastguard Worker    )
9*44844408SAndroid Build Coastguard Workerendif()
10