summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Ninja
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-12-23 10:38:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-12-23 10:39:10 (GMT)
commit179c036b5dcf74c46c91164850704876443658ed (patch)
treec66924307656b09cf7abe8d34838df4df11f7730 /Tests/RunCMake/Ninja
parent6d578ab5f8abe27cffca4f62fdb346b258803d81 (diff)
parent255c2e14309a4861b929f65698b7326cff6c63ad (diff)
downloadCMake-179c036b5dcf74c46c91164850704876443658ed.zip
CMake-179c036b5dcf74c46c91164850704876443658ed.tar.gz
CMake-179c036b5dcf74c46c91164850704876443658ed.tar.bz2
Merge topic 'Ninja-LINK_OPTIONS-with-newlines'
255c2e1430 Ninja: LINK_OPTIONS property should support newlines Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9096
Diffstat (limited to 'Tests/RunCMake/Ninja')
-rw-r--r--Tests/RunCMake/Ninja/LINK_OPTIONSWithNewlines.cmake7
-rw-r--r--Tests/RunCMake/Ninja/RunCMakeTest.cmake2
2 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/Ninja/LINK_OPTIONSWithNewlines.cmake b/Tests/RunCMake/Ninja/LINK_OPTIONSWithNewlines.cmake
new file mode 100644
index 0000000..285966e
--- /dev/null
+++ b/Tests/RunCMake/Ninja/LINK_OPTIONSWithNewlines.cmake
@@ -0,0 +1,7 @@
+enable_language(C)
+
+add_library(hello STATIC hello.c)
+
+target_link_options(hello PRIVATE "-FLAGS=[
+ FLAG1,
+ FLAG2]")
diff --git a/Tests/RunCMake/Ninja/RunCMakeTest.cmake b/Tests/RunCMake/Ninja/RunCMakeTest.cmake
index 8d9aa6f..f020f0d 100644
--- a/Tests/RunCMake/Ninja/RunCMakeTest.cmake
+++ b/Tests/RunCMake/Ninja/RunCMakeTest.cmake
@@ -407,3 +407,5 @@ endfunction()
if(CMake_TEST_Qt_version)
run_QtAutoMocSkipPch()
endif()
+
+run_cmake(LINK_OPTIONSWithNewlines)