Skip to content

Commit 4fca6a3

Browse files
Make datachannel target comply with BUILD_SHARED_LIBS option
1 parent 9bbc79b commit 4fca6a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set(PROJECT_DESCRIPTION "C/C++ WebRTC network library featuring Data Channels, M
77
include(GNUInstallDirs)
88

99
# Options
10+
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
1011
option(USE_GNUTLS "Use GnuTLS instead of OpenSSL" OFF)
1112
option(USE_MBEDTLS "Use Mbed TLS instead of OpenSSL" OFF)
1213
option(USE_NICE "Use libnice instead of libjuice" OFF)
@@ -268,7 +269,7 @@ if(RTC_UPDATE_VERSION_HEADER)
268269
)
269270
endif()
270271

271-
add_library(datachannel SHARED
272+
add_library(datachannel
272273
${LIBDATACHANNEL_SOURCES}
273274
${LIBDATACHANNEL_HEADERS}
274275
${LIBDATACHANNEL_IMPL_SOURCES}

0 commit comments

Comments
 (0)