Skip to content

Commit ccf0251

Browse files
committed
build: inherit libc++ include paths and set as standard library for Linux
1 parent c4e4b3a commit ccf0251

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

webrtc-jni/src/main/cpp/dependencies/jni-voithos/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,16 @@ target_include_directories(${PROJECT_NAME}
8080
include/jni/${JNI_PLATFORM}
8181
)
8282

83+
# Inherit libc++ include paths from webrtc
84+
target_include_directories(${PROJECT_NAME}
85+
PUBLIC
86+
${TARGET_LIBCPP_BUILDTOOLS_INC_DIR}
87+
${TARGET_LIBCPP_INC_DIR}
88+
${TARGET_LIBCPP_ABI_INC_DIR}
89+
)
90+
91+
if(LINUX)
92+
target_compile_options(${PROJECT_NAME} PUBLIC -stdlib=libc++)
93+
endif()
94+
8395
target_link_libraries(${PROJECT_NAME} PRIVATE webrtc)

0 commit comments

Comments
 (0)