summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_run/NoRunOutputVariable.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/try_run/NoRunOutputVariable.cmake')
-rw-r--r--Tests/RunCMake/try_run/NoRunOutputVariable.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/RunCMake/try_run/NoRunOutputVariable.cmake b/Tests/RunCMake/try_run/NoRunOutputVariable.cmake
index 25310d8..f9e5e0b 100644
--- a/Tests/RunCMake/try_run/NoRunOutputVariable.cmake
+++ b/Tests/RunCMake/try_run/NoRunOutputVariable.cmake
@@ -1,4 +1,6 @@
-try_run(RUN_RESULT COMPILE_RESULT
- ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp ${CMAKE_CURRENT_SOURCE_DIR}/src.c
+include(${CMAKE_CURRENT_SOURCE_DIR}/${try_compile_DEFS})
+
+try_run(RUN_RESULT COMPILE_RESULT ${try_compile_bindir_or_SOURCES}
+ ${CMAKE_CURRENT_SOURCE_DIR}/src.c
RUN_OUTPUT_VARIABLE
)