mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Add WEBRTC_BRANCH_HEAD config variable
This commit is contained in:
parent
bc67c8f626
commit
287d483478
2 changed files with 3 additions and 2 deletions
|
|
@ -2,8 +2,9 @@
|
|||
# Options, flags
|
||||
option(BUILD_TESTS "Build test binaries" OFF)
|
||||
set(NINJA_ARGS "" CACHE STRING "Ninja arguments to pass before compiling WebRTC")
|
||||
option(BUILD_SHARED_LIB "Build WebRTC as a shared library." OFF)
|
||||
option(BUILD_SHARED_LIB "Build WebRTC as a shared library" OFF)
|
||||
set(WEBRTC_REVISION "" CACHE STRING "WebRTC commit hash to checkout")
|
||||
set(WEBRTC_BRANCH_HEAD "${LIBWEBRTC_WEBRTC_HEAD}" CACHE STRING "WebRTC branch head to checkout")
|
||||
|
||||
if(BUILD_SHARED_LIB)
|
||||
set(LIBRARY_TYPE SHARED)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ set(_NEXT_DEPENDS webrtc-src)
|
|||
if (NOT WEBRTC_REVISION)
|
||||
libwebrtc_command(
|
||||
NAME webrtc-fetch-refs
|
||||
COMMAND ${GIT_EXECUTABLE} fetch origin ${LIBWEBRTC_WEBRTC_HEAD}
|
||||
COMMAND ${GIT_EXECUTABLE} fetch origin ${WEBRTC_BRANCH_HEAD}
|
||||
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/src"
|
||||
COMMENT "Fetching branch heads"
|
||||
DEPENDS webrtc-src
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue