diff options
author | Brad King <brad.king@kitware.com> | 2022-11-23 12:09:01 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-11-23 12:09:10 (GMT) |
commit | af937d2933f2b8d09c8540e4377ef337152c2240 (patch) | |
tree | a49e0d7f0b91403b9d36ddbff5dc005ece854092 /Tests/RunCMake/try_compile | |
parent | a195dd2a6c7029c2466667455d0ff6fd5effb713 (diff) | |
parent | 80fc564dd7cbebc374a18fb57c71472dac5de6c1 (diff) | |
download | CMake-af937d2933f2b8d09c8540e4377ef337152c2240.zip CMake-af937d2933f2b8d09c8540e4377ef337152c2240.tar.gz CMake-af937d2933f2b8d09c8540e4377ef337152c2240.tar.bz2 |
Merge topic 'try_compile-copy-config'
80fc564dd7 try_compile: Restore COPY_FILE with CMAKE_TRY_COMPILE_CONFIGURATION
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: Robert Maynard <robertjmaynard@gmail.com>
Merge-request: !7948
Diffstat (limited to 'Tests/RunCMake/try_compile')
-rw-r--r-- | Tests/RunCMake/try_compile/CopyFileConfig.cmake | 8 | ||||
-rw-r--r-- | Tests/RunCMake/try_compile/old_and_new_signature_tests.cmake | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/CopyFileConfig.cmake b/Tests/RunCMake/try_compile/CopyFileConfig.cmake new file mode 100644 index 0000000..22d20b7 --- /dev/null +++ b/Tests/RunCMake/try_compile/CopyFileConfig.cmake @@ -0,0 +1,8 @@ +enable_language(C) +set(CMAKE_TRY_COMPILE_CONFIGURATION Release) + +include(${CMAKE_CURRENT_SOURCE_DIR}/${try_compile_DEFS}) +try_compile(RESULT + ${try_compile_bindir_or_SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/src.c + COPY_FILE "${CMAKE_CURRENT_BINARY_DIR}/out.bin" + ) diff --git a/Tests/RunCMake/try_compile/old_and_new_signature_tests.cmake b/Tests/RunCMake/try_compile/old_and_new_signature_tests.cmake index ac07ad3..3158e32 100644 --- a/Tests/RunCMake/try_compile/old_and_new_signature_tests.cmake +++ b/Tests/RunCMake/try_compile/old_and_new_signature_tests.cmake @@ -23,6 +23,7 @@ run_cmake(TryRunArgs) run_cmake(BuildType) run_cmake(BuildTypeAsFlag) run_cmake(OutputDirAsFlag) +run_cmake(CopyFileConfig) run_cmake(EnvConfig) |