From 6a858138068f3b7ce9afc4628ebdd7fb63de6936 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 27 Jun 2022 15:22:12 -0400 Subject: Tests: Add RunCMake.try_compile case covering list arguments with no values --- Tests/RunCMake/try_compile/EmptyListArgs.cmake | 8 ++++++++ Tests/RunCMake/try_compile/RunCMakeTest.cmake | 1 + 2 files changed, 9 insertions(+) create mode 100644 Tests/RunCMake/try_compile/EmptyListArgs.cmake 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) -- cgit v0.12