Skip to content

Commit

Permalink
Use tg_owt webrtc fork.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Aug 20, 2020
1 parent 8c999a0 commit 4c89560
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions external/webrtc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ add_library(desktop-app::external_webrtc ALIAS external_webrtc)
if (DESKTOP_APP_WEBRTC_LOCATION)
set(webrtc_loc ${DESKTOP_APP_WEBRTC_LOCATION})
else()
set(webrtc_loc ${libs_loc}/webrtc/src)
set(webrtc_loc ${libs_loc}/tg_owt/src)
endif()

set(webrtc_build_loc ${webrtc_loc}/out/$<CONFIG>/obj)
set(webrtc_build_loc ${libs_loc}/tg_owt/out/$<CONFIG>)

target_compile_definitions(external_webrtc
INTERFACE
Expand Down Expand Up @@ -64,7 +64,7 @@ INTERFACE
)

set(webrtc_libs
${webrtc_lib_prefix}webrtc
${webrtc_lib_prefix}tg_owt
)
if (APPLE)
target_include_directories(external_webrtc
Expand All @@ -87,7 +87,7 @@ if (WIN32)
wmcodecdspuuid.lib
amstrmid.lib
msdmo.lib
)
)
elseif (APPLE)
target_link_libraries(external_webrtc
INTERFACE
Expand Down
2 changes: 1 addition & 1 deletion init_target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ endfunction()

function(init_target target_name) # init_target(my_target folder_name)
if (ARGC GREATER 1)
if (${ARGV1} STREQUAL cxx_std_14 OR ${ARGV1} STREQUAL cxx_std_11)
if (${ARGV1} STREQUAL cxx_std_14 OR ${ARGV1} STREQUAL cxx_std_11 OR ${ARGV1} STREQUAL cxx_std_17)
target_compile_features(${target_name} PUBLIC ${ARGV1})
else()
target_compile_features(${target_name} PUBLIC ${MAXIMUM_CXX_STANDARD})
Expand Down

0 comments on commit 4c89560

Please sign in to comment.