Skip to content

Commit 4cec170

Browse files
dpinophiln
authored andcommitted
[LibWebRTC] Unreviewed, build fix for Linux after 276708@main
https://bugs.webkit.org/show_bug.cgi?id=271696 CMake was failing because there was an attempt to set 'webrtc' when it was not yet defined. Move faulting lines below, once 'webrtc' is already defined. * Source/ThirdParty/libwebrtc/CMakeLists.txt: Canonical link: https://commits.webkit.org/276724@main
1 parent ad57dfd commit 4cec170

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Source/ThirdParty/libwebrtc/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,10 +2169,7 @@ else ()
21692169
Source/webrtc/modules/audio_device/linux/audio_mixer_manager_pulse_linux.cc
21702170
Source/webrtc/modules/audio_device/linux/pulseaudiosymboltable_linux.cc
21712171
)
2172-
target_include_directories(webrtc PRIVATE ${LibPulse_INCLUDE_DIRS})
2173-
target_compile_options(webrtc PRIVATE ${LibPulse_COMPILE_OPTIONS})
21742172
endif ()
2175-
21762173
endif ()
21772174

21782175
add_library(webrtc STATIC ${webrtc_SOURCES})
@@ -2303,6 +2300,10 @@ else ()
23032300
endif ()
23042301

23052302
target_include_directories(webrtc ${webrtc_INCLUDE_DIRECTORIES})
2303+
if (LIBPULSE_FOUND)
2304+
target_include_directories(webrtc PRIVATE ${LibPulse_INCLUDE_DIRS})
2305+
target_compile_options(webrtc PRIVATE ${LibPulse_COMPILE_OPTIONS})
2306+
endif ()
23062307

23072308
# libsrtp package compilation
23082309
set(libsrtp_SOURCES

0 commit comments

Comments
 (0)