diff options
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r-- | Tests/RunCMake/Ninja/LINK_OPTIONSWithNewlines.cmake | 7 | ||||
-rw-r--r-- | Tests/RunCMake/Ninja/RunCMakeTest.cmake | 2 |
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 42ab1d8..13d9620 100644 --- a/Tests/RunCMake/Ninja/RunCMakeTest.cmake +++ b/Tests/RunCMake/Ninja/RunCMakeTest.cmake @@ -405,3 +405,5 @@ endfunction() if(CMake_TEST_Qt_version) run_QtAutoMocSkipPch() endif() + +run_cmake(LINK_OPTIONSWithNewlines) |