Skip to content

Commit 2ab6c9c

Browse files
fix(cmake): fix static library export dependency log library
1 parent 276eb63 commit 2ab6c9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/src/main/cpp/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ if(FAKELINKER_INSTALL_PRIVATE_HEADERS)
113113
)
114114
endif()
115115

116-
target_link_libraries(fakelinker_static ${log-lib})
116+
target_link_libraries(fakelinker_static PRIVATE
117+
$<BUILD_INTERFACE:${log-lib}>
118+
)
117119

118120
if(${CMAKE_ANDROID_ARCH_ABI} STREQUAL "arm64-v8a" OR ${CMAKE_ANDROID_ARCH_ABI} STREQUAL "x86_64")
119121
target_compile_definitions(fakelinker_static PUBLIC USE_RELA)

0 commit comments

Comments
 (0)