diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-07-18 09:51:38 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-07-21 13:08:28 (GMT) |
commit | af1a4f52be86c0054006ad98a64316b5531e1bf4 (patch) | |
tree | fab6b0e49f6a785fefa784086d4c820fee342430 /Tests/GeneratorExpression | |
parent | 79cba639e88fcdbd3c21c6d3c7f087234873154a (diff) | |
download | CMake-af1a4f52be86c0054006ad98a64316b5531e1bf4.zip CMake-af1a4f52be86c0054006ad98a64316b5531e1bf4.tar.gz CMake-af1a4f52be86c0054006ad98a64316b5531e1bf4.tar.bz2 |
Genex: $<TARGET_PROPERTY> strip emtpy list elements for predefined properties
Fixes: #20951
Diffstat (limited to 'Tests/GeneratorExpression')
-rw-r--r-- | Tests/GeneratorExpression/check-part3.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/GeneratorExpression/check-part3.cmake b/Tests/GeneratorExpression/check-part3.cmake index b5eafa6..5571c3d 100644 --- a/Tests/GeneratorExpression/check-part3.cmake +++ b/Tests/GeneratorExpression/check-part3.cmake @@ -9,11 +9,11 @@ check(test_version_equal_1 "0") check(test_version_equal_2 "1") if(config AND NOT config STREQUAL NoConfig) - if(NOT "${test_imported_includes}" MATCHES "^;*/imported[12]/include/with space;*$") + if(NOT "${test_imported_includes}" MATCHES "^[^;]*/imported[12]/include/with space$") message(SEND_ERROR "test_imported_includes is not correct: ${test_imported_includes}") endif() else() - if(NOT "${test_imported_includes}" MATCHES "^;;$") + if(NOT "${test_imported_includes}" MATCHES "^$") message(SEND_ERROR "test_imported_includes is not an empty list: ${test_imported_includes}") endif() endif() |