Skip to content

Commit

Permalink
Fix external_webrtc for Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Aug 11, 2020
1 parent 5a83769 commit 8414d2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion external/webrtc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ else()
WEBRTC_MAC
)
else()
target_compile_definitions(external_webrtc
INTERFACE
WEBRTC_LINUX
)
endif()

target_compile_definitions(external_webrtc
Expand All @@ -55,9 +59,9 @@ INTERFACE
)

set(webrtc_libs
${webrtc_lib_prefix}webrtc
test/${webrtc_lib_prefix}platform_video_capturer
test/${webrtc_lib_prefix}video_test_common
${webrtc_lib_prefix}webrtc
)
if (APPLE)
list(APPEND webrtc_libs
Expand Down Expand Up @@ -86,4 +90,5 @@ endif()
target_link_libraries(external_webrtc
INTERFACE
${webrtc_libs_list}
desktop-app::external_openssl
)
3 changes: 2 additions & 1 deletion options_linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

target_compile_options(common_options
INTERFACE
-fPIC
$<IF:$<CONFIG:Debug>,,-fno-strict-aliasing>
-pipe
-Wall
-W
-fPIC
-Wno-unused-variable
-Wno-unused-parameter
-Wno-unused-function
Expand All @@ -24,6 +24,7 @@ INTERFACE
-Wno-stringop-overflow
-Wno-maybe-uninitialized
-Wno-error=class-memaccess
$<$<NOT:$<COMPILE_LANGUAGE:C>>:-Wno-register>
)

if (DESKTOP_APP_SPECIAL_TARGET)
Expand Down

0 comments on commit 8414d2a

Please sign in to comment.