You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/CXXModules/InstallBMIIgnore-check.cmake

14 lines
570 B

file(READ "${RunCMake_TEST_BINARY_DIR}/cmake_install.cmake" install_script)
if (install_script MATCHES [[\(CMAKE_INSTALL_COMPONENT STREQUAL "bmi" OR NOT CMAKE_INSTALL_COMPONENT\)]])
list(APPEND RunCMake_TEST_FAILED
"Found BMI install script component for `bmi`")
endif ()
if (install_script MATCHES [[include\("[^)]*/CMakeFiles/install-bmi-ignore\.dir/install-cxx-module-bmi-[^.]*\.cmake" OPTIONAL\)]])
list(APPEND RunCMake_TEST_FAILED
"Found BMI install script inclusion")
endif ()
string(REPLACE ";" "; " RunCMake_TEST_FAILED "${RunCMake_TEST_FAILED}")