summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-06-27 19:22:12 (GMT)
committerBrad King <brad.king@kitware.com>2022-07-26 19:09:49 (GMT)
commit6a858138068f3b7ce9afc4628ebdd7fb63de6936 (patch)
treea1a835f0795402a799bd6414dc9b4b4af747af1f /Tests/RunCMake/try_compile
parent7a5b1b6010d9f3f2bf979a505eb4c698b994bf26 (diff)
downloadCMake-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.cmake8
-rw-r--r--Tests/RunCMake/try_compile/RunCMakeTest.cmake1
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)