mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
Tests: Extend GeneratorExpression to work with more configurations
Add missing pieces for RelWithDebInfo and MinSizeRel.
This commit is contained in:
@@ -161,6 +161,10 @@ set_property(TARGET imported3 APPEND PROPERTY
|
||||
INTERFACE_INCLUDE_DIRECTORIES $<$<CONFIG:DEBUG>:$<TARGET_PROPERTY:imported1,INTERFACE_INCLUDE_DIRECTORIES>>)
|
||||
set_property(TARGET imported3 APPEND PROPERTY
|
||||
INTERFACE_INCLUDE_DIRECTORIES $<$<CONFIG:RELEASE>:$<TARGET_PROPERTY:imported2,INTERFACE_INCLUDE_DIRECTORIES>>)
|
||||
set_property(TARGET imported3 APPEND PROPERTY
|
||||
INTERFACE_INCLUDE_DIRECTORIES $<$<CONFIG:RELWITHDEBINFO>:$<TARGET_PROPERTY:imported2,INTERFACE_INCLUDE_DIRECTORIES>>)
|
||||
set_property(TARGET imported3 APPEND PROPERTY
|
||||
INTERFACE_INCLUDE_DIRECTORIES $<$<CONFIG:MINSIZEREL>:$<TARGET_PROPERTY:imported2,INTERFACE_INCLUDE_DIRECTORIES>>)
|
||||
|
||||
add_library(imported4 SHARED IMPORTED)
|
||||
set_property(TARGET imported4 APPEND PROPERTY
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user