Files
third_party_jsoncpp/include/PreventInBuildInstalls.cmake
T
zt147369 855b19ce1e jsoncpp 升级1.9.5
Signed-off-by: zt147369 <zhangting201@huawei.com>
2023-03-11 01:50:18 +00:00

10 lines
297 B
CMake
Executable File

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()