From c3a22518f83dfe8e1787e93f05398a5263cc781a Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 26 Jan 2017 10:13:14 -0500 Subject: Tests: Extend GeneratorExpression to work with more configurations Add missing pieces for RelWithDebInfo and MinSizeRel. --- Tests/GeneratorExpression/CMakeLists.txt | 4 ++++ Tests/GeneratorExpression/check-part3.cmake | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/GeneratorExpression/CMakeLists.txt b/Tests/GeneratorExpression/CMakeLists.txt index dd86b6f..3091780 100644 --- a/Tests/GeneratorExpression/CMakeLists.txt +++ b/Tests/GeneratorExpression/CMakeLists.txt @@ -161,6 +161,10 @@ set_property(TARGET imported3 APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES $<$:$>) set_property(TARGET imported3 APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES $<$:$>) +set_property(TARGET imported3 APPEND PROPERTY + INTERFACE_INCLUDE_DIRECTORIES $<$:$>) +set_property(TARGET imported3 APPEND PROPERTY + INTERFACE_INCLUDE_DIRECTORIES $<$:$>) add_library(imported4 SHARED IMPORTED) set_property(TARGET imported4 APPEND PROPERTY diff --git a/Tests/GeneratorExpression/check-part3.cmake b/Tests/GeneratorExpression/check-part3.cmake index 57abbcc..9014406 100644 --- a/Tests/GeneratorExpression/check-part3.cmake +++ b/Tests/GeneratorExpression/check-part3.cmake @@ -13,7 +13,7 @@ if(config AND NOT config STREQUAL NoConfig) 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() -- cgit v0.12