Files
CMake/Tests/RunCMake/install/CMP0087-NEW-check.cmake
T
Jon Chronopoulos 25cae1e85d install: Teach CODE,SCRIPT modes to evaluate generator expressions
This also introduces CMP0087 which will keep the OLD behaviour of not
evaluating generator expressions

Fixes: #15785
2018-12-23 09:03:38 +11:00

8 lines
348 B
CMake

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: .*-- codegenexlib")
string(REGEX REPLACE "\n" "\n " out " ${out}")
string(APPEND RunCMake_TEST_FAILED
"\"-- codegenexlib\" was not found:\n${out}")
endif()