mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
build: Apply flags correctly for imported libraries
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user