Skip to content

Commit

Permalink
Fix includes
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud committed May 7, 2024
1 parent 90a64b3 commit f7c19d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/Modules/merge_static_libs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ function(merge_static_libs target in_target)
if(link_dirs)
target_link_directories(${target} PUBLIC ${link_dirs})
endif()
get_target_property(include_dirs ${lib} INTERFACE_INCLUDE_DIRECTORIES)
if(include_dirs)
target_include_directories(${target} PUBLIC ${include_dirs})
endif()
get_target_property(is_avif_local ${lib} AVIF_LOCAL)
if(is_avif_local)
list(APPEND libs $<TARGET_FILE:${lib}>)
list(APPEND dependencies "${lib}")
else()
if(${child_target_type} STREQUAL "UNKNOWN_LIBRARY")
# This is a global library. It needs to be linked to.
get_target_property(include_dirs ${lib} INTERFACE_INCLUDE_DIRECTORIES)
if(include_dirs)
target_include_directories(${target} PUBLIC ${include_dirs})
endif()
target_link_libraries(${target} ${lib})
endif()
endif()
Expand Down

0 comments on commit f7c19d2

Please sign in to comment.