summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/CMP0087-OLD-check.cmake
blob: c5984bca78e430c0286ef6fd0459ef4a9d99811d (plain)
1
2
3
4
5
6
7
8
execute_process(COMMAND ${CMAKE_COMMAND} -P ${RunCMake_TEST_BINARY_DIR}/cmake_install.cmake
  OUTPUT_VARIABLE out ERROR_VARIABLE err)

if(NOT out MATCHES "-- Install configuration: .*-- \\$<TARGET_PROPERTY:codegenexlib,NAME>")
  string(REGEX REPLACE "\n" "\n  " out "  ${out}")
  string(APPEND RunCMake_TEST_FAILED
      "\"-- $<TARGET_PROPERTY:codegenexlib,NAME>\" was not found:\n${out}")
endif()