summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_run/NoRunOutputVariable.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-08-01 17:56:16 (GMT)
committerBrad King <brad.king@kitware.com>2022-08-01 18:13:03 (GMT)
commitb8e551ed320569b3ca0fd68477c5fa951baa5095 (patch)
tree0c0d379368662ce7abb39167a44251ada9c965b2 /Tests/RunCMake/try_run/NoRunOutputVariable.cmake
parent514804c8bcfd26a675dcaceaa719a632a21894b2 (diff)
downloadCMake-b8e551ed320569b3ca0fd68477c5fa951baa5095.zip
CMake-b8e551ed320569b3ca0fd68477c5fa951baa5095.tar.gz
CMake-b8e551ed320569b3ca0fd68477c5fa951baa5095.tar.bz2
Tests: Add RunCMake.try_run cases for missing keyword arguments
Diffstat (limited to 'Tests/RunCMake/try_run/NoRunOutputVariable.cmake')
-rw-r--r--Tests/RunCMake/try_run/NoRunOutputVariable.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_run/NoRunOutputVariable.cmake b/Tests/RunCMake/try_run/NoRunOutputVariable.cmake
new file mode 100644
index 0000000..25310d8
--- /dev/null
+++ b/Tests/RunCMake/try_run/NoRunOutputVariable.cmake
@@ -0,0 +1,4 @@
+try_run(RUN_RESULT COMPILE_RESULT
+ ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp ${CMAKE_CURRENT_SOURCE_DIR}/src.c
+ RUN_OUTPUT_VARIABLE
+ )