diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-15 16:32:38 (GMT) |
---|---|---|
committer | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-15 16:32:38 (GMT) |
commit | e933fccc7eb5400f1512fa097eca51f0dcd7c946 (patch) | |
tree | 00a6c803b8974b59503e566b6462c9a5916ef0a4 /Tests/RunCMake/try_compile | |
parent | 01a25d72c69b0a9a60c1a62939d6a2c543448118 (diff) | |
download | CMake-e933fccc7eb5400f1512fa097eca51f0dcd7c946.zip CMake-e933fccc7eb5400f1512fa097eca51f0dcd7c946.tar.gz CMake-e933fccc7eb5400f1512fa097eca51f0dcd7c946.tar.bz2 |
Tests: document try_{compile,run} old/new signature testing
Add a brief documentation blurb to the try_compile and try_run test sets
on writing tests for both "old" and "new" signatures.
Diffstat (limited to 'Tests/RunCMake/try_compile')
-rw-r--r-- | Tests/RunCMake/try_compile/old_and_new_signature_tests.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
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 f80d445..ac07ad3 100644 --- a/Tests/RunCMake/try_compile/old_and_new_signature_tests.cmake +++ b/Tests/RunCMake/try_compile/old_and_new_signature_tests.cmake @@ -1,3 +1,12 @@ +# These tests are performed using both the historic and the newer SOURCES +# signatures of try_compile. It is critical that they behave the same and +# produce comparable output for both signatures. Tests that cannot do this +# belong in RunCMakeTests.txt, not here. +# +# Tests here MUST include(${CMAKE_CURRENT_SOURCE_DIR}/${try_compile_DEFS}) and +# use the variables defined therein appropriately. Refer to existing tests for +# examples. + run_cmake(CopyFileErrorNoCopyFile) run_cmake(NoCopyFile) run_cmake(NoCopyFile2) |