diff options
author | Brad King <brad.king@kitware.com> | 2016-02-02 13:33:20 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-02-02 13:33:20 (GMT) |
commit | f8e5e5bb0353d7ecf2ad9ea861e3a4cd5d4277d1 (patch) | |
tree | 60d0bf66082f6f4d65f5a35294a33a8ab3a152ca /Tests/RunCMake | |
parent | 6a230df6368e699521aff1ded3e3f452a161385b (diff) | |
parent | 6ffc4323670f3671f262b3e9f035f1ea3f714986 (diff) | |
download | CMake-f8e5e5bb0353d7ecf2ad9ea861e3a4cd5d4277d1.zip CMake-f8e5e5bb0353d7ecf2ad9ea861e3a4cd5d4277d1.tar.gz CMake-f8e5e5bb0353d7ecf2ad9ea861e3a4cd5d4277d1.tar.bz2 |
Merge topic 'fix-CMAKE_MATCH-self-match'
6ffc4323 cmConditionEvaluator: Fix matching of `CMAKE_MATCH_*` values (#15944)
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r-- | Tests/RunCMake/if/MatchesSelf.cmake | 4 | ||||
-rw-r--r-- | Tests/RunCMake/if/RunCMakeTest.cmake | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/if/MatchesSelf.cmake b/Tests/RunCMake/if/MatchesSelf.cmake new file mode 100644 index 0000000..3131ac4 --- /dev/null +++ b/Tests/RunCMake/if/MatchesSelf.cmake @@ -0,0 +1,4 @@ +foreach(n 0 1 2 3 4 5 6 7 8 9 COUNT) + if(CMAKE_MATCH_${n} MATCHES "x") + endif() +endforeach() diff --git a/Tests/RunCMake/if/RunCMakeTest.cmake b/Tests/RunCMake/if/RunCMakeTest.cmake index 3f4d2a2..077d00a 100644 --- a/Tests/RunCMake/if/RunCMakeTest.cmake +++ b/Tests/RunCMake/if/RunCMakeTest.cmake @@ -5,5 +5,7 @@ run_cmake(IsDirectory) run_cmake(IsDirectoryLong) run_cmake(elseif-message) +run_cmake(MatchesSelf) + run_cmake(TestNameThatExists) run_cmake(TestNameThatDoesNotExist) |