CMake/Tests/RunCMake/if
Brad King 6ffc432367 cmConditionEvaluator: Fix matching of `CMAKE_MATCH_*` values (#15944)
While evaluating `if(MATCHES)` we get a `const char*` pointer to the
string to be matched.  On code like

    if(CMAKE_MATCH_COUNT MATCHES "Y")

the string to be matched may be owned by our own result variables.
We must move the value to our own buffer before clearing them.
Otherwise we risk reading freed storage.
2016-02-01 10:05:10 -05:00
..
CMakeLists.txt
InvalidArgument1-result.txt Tests: Move command failure cases into RunCMake infrastructure 2015-07-14 10:25:38 -04:00
InvalidArgument1-stderr.txt Tests: Move command failure cases into RunCMake infrastructure 2015-07-14 10:25:38 -04:00
InvalidArgument1.cmake Tests: Move command failure cases into RunCMake infrastructure 2015-07-14 10:25:38 -04:00
IsDirectory-stdout.txt
IsDirectory.cmake
IsDirectoryLong-stdout.txt
IsDirectoryLong.cmake
MatchesSelf.cmake cmConditionEvaluator: Fix matching of `CMAKE_MATCH_*` values (#15944) 2016-02-01 10:05:10 -05:00
RunCMakeTest.cmake cmConditionEvaluator: Fix matching of `CMAKE_MATCH_*` values (#15944) 2016-02-01 10:05:10 -05:00
TestNameThatDoesNotExist-stdout.txt if: Add "TEST <test>" condition 2015-08-03 09:22:25 -04:00
TestNameThatDoesNotExist.cmake if: Add "TEST <test>" condition 2015-08-03 09:22:25 -04:00
TestNameThatExists-stdout.txt if: Add "TEST <test>" condition 2015-08-03 09:22:25 -04:00
TestNameThatExists.cmake if: Add "TEST <test>" condition 2015-08-03 09:22:25 -04:00
elseif-message-result.txt if(): Test the effect of cmMakefileCall use in elseif() handling. 2015-05-18 21:28:09 +02:00
elseif-message-stderr.txt if(): Test the effect of cmMakefileCall use in elseif() handling. 2015-05-18 21:28:09 +02:00
elseif-message.cmake if(): Test the effect of cmMakefileCall use in elseif() handling. 2015-05-18 21:28:09 +02:00