build: Apply flags correctly for imported libraries
This commit is contained in:
parent
5ee2ebfb4f
commit
be40fd9563
@ -11,8 +11,8 @@ if (POLICY CMP0177)
|
||||
endif()
|
||||
|
||||
function(getTarget target type)
|
||||
get_target_property(TARGET_TYPE ${target} TYPE)
|
||||
if (${TARGET_TYPE} STREQUAL "INTERFACE_LIBRARY")
|
||||
get_target_property(IMPORTED_TARGET ${target} IMPORTED)
|
||||
if (${IMPORTED_TARGET})
|
||||
set(${type} INTERFACE PARENT_SCOPE)
|
||||
else()
|
||||
set(${type} PRIVATE PARENT_SCOPE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user