summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/InstallBMIIgnore-check.cmake
blob: 7d13ef0892c47743daf4f3025845ec5c585bdf72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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}")