diff options
author | Brad King <brad.king@kitware.com> | 2022-09-07 14:42:52 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-09-07 14:43:14 (GMT) |
commit | ecfc63a9b0e73b2c9525a4ba65ceb22759ab00fd (patch) | |
tree | 52b87b02b7b422227ad07148857ad8dedab46636 /Tests/RunCMake/try_run/WorkingDirArg.cmake | |
parent | a64aa9bd300b2df2441d8e07ec3e2afe3069b04e (diff) | |
parent | aa9220d3a0c4a5b15a9a590ed75afedff38764fe (diff) | |
download | CMake-ecfc63a9b0e73b2c9525a4ba65ceb22759ab00fd.zip CMake-ecfc63a9b0e73b2c9525a4ba65ceb22759ab00fd.tar.gz CMake-ecfc63a9b0e73b2c9525a4ba65ceb22759ab00fd.tar.bz2 |
Merge topic 'try_compile-unique-bindir'
aa9220d3a0 try_compile: Add keyword-dispatched signature
d1befe5515 cmSystemTools: Add MakeTempDirectory
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: Matthew Woehlke <matthew.woehlke@kitware.com>
Merge-request: !7579
Diffstat (limited to 'Tests/RunCMake/try_run/WorkingDirArg.cmake')
-rw-r--r-- | Tests/RunCMake/try_run/WorkingDirArg.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/RunCMake/try_run/WorkingDirArg.cmake b/Tests/RunCMake/try_run/WorkingDirArg.cmake index 62f78e8..375a703 100644 --- a/Tests/RunCMake/try_run/WorkingDirArg.cmake +++ b/Tests/RunCMake/try_run/WorkingDirArg.cmake @@ -1,5 +1,7 @@ -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 RUN_OUTPUT WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp/workdir ) |