diff options
author | Orkun Tokdemir <ilhanorkuntokdemir@gmail.com> | 2023-06-23 18:31:40 (GMT) |
---|---|---|
committer | Orkun Tokdemir <ilhanorkuntokdemir@gmail.com> | 2023-09-13 13:59:57 (GMT) |
commit | 10b09647f2699b32c3d243f595437cb1c63049e2 (patch) | |
tree | 0bc1379537f69aef581c8bfb8dd8c41af2122705 /Tests/RunCMake/RunCMake.cmake | |
parent | cac2e029f02213648699665a962def96d41b2b05 (diff) | |
download | CMake-10b09647f2699b32c3d243f595437cb1c63049e2.zip CMake-10b09647f2699b32c3d243f595437cb1c63049e2.tar.gz CMake-10b09647f2699b32c3d243f595437cb1c63049e2.tar.bz2 |
RunCMake: Add RunCMake_TEST_EXPECT_RESULT
Diffstat (limited to 'Tests/RunCMake/RunCMake.cmake')
-rw-r--r-- | Tests/RunCMake/RunCMake.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake index baeb9ca..8939cb7 100644 --- a/Tests/RunCMake/RunCMake.cmake +++ b/Tests/RunCMake/RunCMake.cmake @@ -24,6 +24,8 @@ function(run_cmake test) if(EXISTS ${top_src}/${test}-result.txt) file(READ ${top_src}/${test}-result.txt expect_result) string(REGEX REPLACE "\n+$" "" expect_result "${expect_result}") + elseif(DEFINED RunCMake_TEST_EXPECT_RESULT) + set(expect_result "${RunCMake_TEST_EXPECT_RESULT}") else() set(expect_result 0) endif() |