|
@@ -23,6 +23,7 @@ option(NO_TESTS "Disable tests build" OFF)
|
|
|
option(WARNINGS_AS_ERRORS "Treat warnings as errors" OFF)
|
|
|
option(CAPI_STDCALL "Set calling convention of C API callbacks stdcall" OFF)
|
|
|
option(SCTP_DEBUG "Enable SCTP debugging output to verbose log" OFF)
|
|
|
+option(RTC_UPDATE_VERSION_HEADER "Enable updating the version header" OFF)
|
|
|
|
|
|
if (USE_GNUTLS AND USE_MBEDTLS)
|
|
|
message(FATAL_ERROR "Both USE_MBEDTLS and USE_GNUTLS cannot be enabled at the same time")
|
|
@@ -260,10 +261,12 @@ else()
|
|
|
add_library(Usrsctp::Usrsctp ALIAS usrsctp)
|
|
|
endif()
|
|
|
|
|
|
-configure_file (
|
|
|
- ${PROJECT_SOURCE_DIR}/cmake/version.h.in
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/version.h
|
|
|
-)
|
|
|
+if(RTC_UPDATE_VERSION_HEADER)
|
|
|
+ configure_file (
|
|
|
+ ${PROJECT_SOURCE_DIR}/cmake/version.h.in
|
|
|
+ ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc/version.h
|
|
|
+ )
|
|
|
+endif()
|
|
|
|
|
|
add_library(datachannel SHARED
|
|
|
${LIBDATACHANNEL_SOURCES}
|