diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-14 20:35:50 (GMT) |
---|---|---|
committer | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-14 20:35:50 (GMT) |
commit | 56ae40cc59b74d7d4cf4c00cf35badec6aea2274 (patch) | |
tree | e0fb95e0d167a6a6060ef097315fc3596701f19a /Tests/RunCMake/try_compile/ProjectCopyFile.cmake | |
parent | c3e68020d61ae306261b4f953947483a960edf32 (diff) | |
download | CMake-56ae40cc59b74d7d4cf4c00cf35badec6aea2274.zip CMake-56ae40cc59b74d7d4cf4c00cf35badec6aea2274.tar.gz CMake-56ae40cc59b74d7d4cf4c00cf35badec6aea2274.tar.bz2 |
try_compile: Add PROJECT keyword-dispatched signature
Introduce a new signature for the project flavor of try_compile (and
try_run) which removes the `bindir` argument and adds a required PROJECT
tag. This is similar to the SOURCES flavor added by commit aa9220d3
(try_compile: Add keyword-dispatched signature, 2022-09-02).
Diffstat (limited to 'Tests/RunCMake/try_compile/ProjectCopyFile.cmake')
-rw-r--r-- | Tests/RunCMake/try_compile/ProjectCopyFile.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/ProjectCopyFile.cmake b/Tests/RunCMake/try_compile/ProjectCopyFile.cmake new file mode 100644 index 0000000..6bfec99 --- /dev/null +++ b/Tests/RunCMake/try_compile/ProjectCopyFile.cmake @@ -0,0 +1,4 @@ +try_compile(RESULT + PROJECT TestProject + SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/proj + COPY_FILE result) |