mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Move version settings code to a separate CMake module
This commit is contained in:
parent
82cedb40a9
commit
5337697608
2 changed files with 14 additions and 13 deletions
|
|
@ -9,19 +9,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
|
|||
${CMAKE_SOURCE_DIR}/CMakeModules)
|
||||
|
||||
include(FindLibraries)
|
||||
|
||||
#
|
||||
# Set the project's version
|
||||
set(LIBWEBRTC_MAJOR_VERSION 0)
|
||||
set(LIBWEBRTC_MINOR_VERSION 0)
|
||||
set(LIBWEBRTC_PATCH_VERSION 1)
|
||||
set(LIBWEBRTC_BUILD_VERSION -rc.4)
|
||||
set(LIBWEBRTC_WEBRTC_REVISION ae2551232b5249e38298a50f2d9a64d3c862db00)
|
||||
|
||||
set(LIBWEBRTC_API_VERSION
|
||||
"${LIBWEBRTC_MAJOR_VERSION}.${LIBWEBRTC_MINOR_VERSION}.${LIBWEBRTC_PATCH_VERSION}")
|
||||
set(LIBWEBRTC_VERSION
|
||||
${LIBWEBRTC_API_VERSION}${LIBWEBRTC_BUILD_VERSION})
|
||||
include(Version)
|
||||
|
||||
#
|
||||
# Options, flags
|
||||
|
|
|
|||
13
CMakeModules/Version.cmake
Normal file
13
CMakeModules/Version.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#
|
||||
# Set the project's version
|
||||
|
||||
set(LIBWEBRTC_MAJOR_VERSION 0)
|
||||
set(LIBWEBRTC_MINOR_VERSION 0)
|
||||
set(LIBWEBRTC_PATCH_VERSION 1)
|
||||
set(LIBWEBRTC_BUILD_VERSION -rc.4)
|
||||
set(LIBWEBRTC_WEBRTC_REVISION ae2551232b5249e38298a50f2d9a64d3c862db00)
|
||||
|
||||
set(LIBWEBRTC_API_VERSION
|
||||
"${LIBWEBRTC_MAJOR_VERSION}.${LIBWEBRTC_MINOR_VERSION}.${LIBWEBRTC_PATCH_VERSION}")
|
||||
set(LIBWEBRTC_VERSION
|
||||
${LIBWEBRTC_API_VERSION}${LIBWEBRTC_BUILD_VERSION})
|
||||
Loading…
Add table
Reference in a new issue