Skip to content

Commit

Permalink
Update merge_static_libs.cmake to copy INTERFACE_INCLUDE_DIRECTORIES (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
WangWeiLin-MV authored Nov 15, 2024
1 parent 13d784e commit 6fac47f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/Modules/merge_static_libs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ function(merge_static_libs target in_target)
set(source_file ${CMAKE_CURRENT_BINARY_DIR}/${target}_depends.c)
add_library(${target} STATIC ${source_file})

get_target_property(include_dirs ${in_target} INTERFACE_INCLUDE_DIRECTORIES)
if(include_dirs)
target_include_directories(${target} PUBLIC ${include_dirs})
endif()

avif_collect_deps(${in_target} lib_deps)

foreach(lib ${lib_deps})
Expand Down

0 comments on commit 6fac47f

Please sign in to comment.