summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile/ProjectCopyFile.cmake
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2022-09-14 20:35:50 (GMT)
committerMatthew Woehlke <matthew.woehlke@kitware.com>2022-09-14 20:35:50 (GMT)
commit56ae40cc59b74d7d4cf4c00cf35badec6aea2274 (patch)
treee0fb95e0d167a6a6060ef097315fc3596701f19a /Tests/RunCMake/try_compile/ProjectCopyFile.cmake
parentc3e68020d61ae306261b4f953947483a960edf32 (diff)
downloadCMake-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.cmake4
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)