mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 20:29:49 -05:00
ddb9442f48
In commitbbba701899(Link properties: must be transitive over private dependency on static library, 2019-12-06, v3.17.0-rc1~323^2) and commitaf9d4f24ae(Link properties: must be transitive over private dependency on static library, 2019-12-11, v3.17.0-rc1~305^2) we neglected to implement CMP0099 NEW behavior for `TARGET_PROPERTY` evaluation. Add policy CMP0166 to fix this.
13 lines
551 B
CMake
13 lines
551 B
CMake
string(REGEX REPLACE "\r\n" "\n" expect "${expect}")
|
|
string(REGEX REPLACE "\n+$" "" expect "${expect}")
|
|
|
|
file(READ "${RunCMake_TEST_BINARY_DIR}/out.txt" actual)
|
|
string(REGEX REPLACE "\r\n" "\n" actual "${actual}")
|
|
string(REGEX REPLACE "\n+$" "" actual "${actual}")
|
|
|
|
if(NOT actual MATCHES "^${expect}$")
|
|
string(REPLACE "\n" "\n expect> " expect " expect> ${expect}")
|
|
string(REPLACE "\n" "\n actual> " actual " actual> ${actual}")
|
|
message(FATAL_ERROR "Expected file(GENERATE) output:\n${expect}\ndoes not match actual output:\n${actual}")
|
|
endif()
|