-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libavif] Fix target config include dirs for static build
- Loading branch information
1 parent
9b5cb8e
commit 5ab3d06
Showing
5 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/cmake/Modules/merge_static_libs.cmake b/cmake/Modules/merge_static_libs.cmake | ||
index 2f4826770e..16aac576bb 100644 | ||
--- a/cmake/Modules/merge_static_libs.cmake | ||
+++ b/cmake/Modules/merge_static_libs.cmake | ||
@@ -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}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters