diff options
author | Brad King <brad.king@kitware.com> | 2018-06-08 13:37:35 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-06-08 13:37:48 (GMT) |
commit | 812eaa465ca026ff0413f8c78b41edccd7eefdc7 (patch) | |
tree | 4804a2e64f9a24679ce1b7c1bee6bf65086671e2 /Tests/RunCMake/add_link_options/LINKER_expansion-validation.cmake | |
parent | e9f2a29fee7fb67d6a3eafa396f4f630795a99ec (diff) | |
parent | 66ea1a3795f76ce921bc48f82ff228bcceed4524 (diff) | |
download | CMake-812eaa465ca026ff0413f8c78b41edccd7eefdc7.zip CMake-812eaa465ca026ff0413f8c78b41edccd7eefdc7.tar.gz CMake-812eaa465ca026ff0413f8c78b41edccd7eefdc7.tar.bz2 |
Merge topic 'LINK_OPTIONS'
66ea1a3795 LINK_OPTIONS: Add support of "LINKER:" prefix
c1f5a44b28 LINK_OPTIONS: Add new family of properties
8e28d2630a Makefile generator: link flags management refactoring
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Alex Turbov <i.zaufi@gmail.com>
Merge-request: !2033
Diffstat (limited to 'Tests/RunCMake/add_link_options/LINKER_expansion-validation.cmake')
-rw-r--r-- | Tests/RunCMake/add_link_options/LINKER_expansion-validation.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/add_link_options/LINKER_expansion-validation.cmake b/Tests/RunCMake/add_link_options/LINKER_expansion-validation.cmake new file mode 100644 index 0000000..bebd6c7 --- /dev/null +++ b/Tests/RunCMake/add_link_options/LINKER_expansion-validation.cmake @@ -0,0 +1,15 @@ + +if (actual_stdout MATCHES "(LINKER|SHELL):") + set (RunCMake_TEST_FAILED "LINKER: prefix was not expanded.") + return() +endif() + +if (NOT EXISTS "${RunCMake_TEST_BINARY_DIR}/LINKER.txt") + set (RunCMake_TEST_FAILED "${RunCMake_TEST_BINARY_DIR}/LINKER.txt: Reference file not found.") + return() +endif() +file(READ "${RunCMake_TEST_BINARY_DIR}/LINKER.txt" linker_flag) + +if (NOT actual_stdout MATCHES "${linker_flag}") + set (RunCMake_TEST_FAILED "LINKER: was not expanded correctly.") +endif() |