diff options
author | Brad King <brad.king@kitware.com> | 2022-06-27 19:22:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-07-26 19:09:49 (GMT) |
commit | 6a858138068f3b7ce9afc4628ebdd7fb63de6936 (patch) | |
tree | a1a835f0795402a799bd6414dc9b4b4af747af1f /Tests/RunCMake/try_compile | |
parent | 7a5b1b6010d9f3f2bf979a505eb4c698b994bf26 (diff) | |
download | CMake-6a858138068f3b7ce9afc4628ebdd7fb63de6936.zip CMake-6a858138068f3b7ce9afc4628ebdd7fb63de6936.tar.gz CMake-6a858138068f3b7ce9afc4628ebdd7fb63de6936.tar.bz2 |
Tests: Add RunCMake.try_compile case covering list arguments with no values
Diffstat (limited to 'Tests/RunCMake/try_compile')
-rw-r--r-- | Tests/RunCMake/try_compile/EmptyListArgs.cmake | 8 | ||||
-rw-r--r-- | Tests/RunCMake/try_compile/RunCMakeTest.cmake | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/EmptyListArgs.cmake b/Tests/RunCMake/try_compile/EmptyListArgs.cmake new file mode 100644 index 0000000..eed7ee4 --- /dev/null +++ b/Tests/RunCMake/try_compile/EmptyListArgs.cmake @@ -0,0 +1,8 @@ +enable_language(C) + +try_compile(RESULT ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src.c + CMAKE_FLAGS # no values + COMPILE_DEFINITIONS # no values + LINK_LIBRARIES # no values + LINK_OPTIONS # no values + ) diff --git a/Tests/RunCMake/try_compile/RunCMakeTest.cmake b/Tests/RunCMake/try_compile/RunCMakeTest.cmake index f755f53..1467157 100644 --- a/Tests/RunCMake/try_compile/RunCMakeTest.cmake +++ b/Tests/RunCMake/try_compile/RunCMakeTest.cmake @@ -17,6 +17,7 @@ run_cmake(NonSourceCopyFile) run_cmake(NonSourceCompileDefinitions) run_cmake(BinDirEmpty) run_cmake(BinDirRelative) +run_cmake(EmptyListArgs) run_cmake(EnvConfig) |