Removed deprecated USE_JUICE CMake option

This commit is contained in:
Paul-Louis Ageneau
2021-04-03 20:56:01 +02:00
parent 238358b5a3
commit ae2cf2f0d1

View File

@ -15,12 +15,6 @@ option(NO_TESTS "Disable tests build" OFF)
option(WARNINGS_AS_ERRORS "Treat warnings as errors" OFF) option(WARNINGS_AS_ERRORS "Treat warnings as errors" OFF)
option(CAPI_STDCALL "Set calling convention of C API callbacks stdcall" OFF) option(CAPI_STDCALL "Set calling convention of C API callbacks stdcall" OFF)
if(USE_NICE)
option(USE_JUICE "Use libjuice" OFF)
else()
option(USE_JUICE "Use libjuice" ON)
endif()
if(USE_GNUTLS) if(USE_GNUTLS)
option(USE_NETTLE "Use Nettle in libjuice" ON) option(USE_NETTLE "Use Nettle in libjuice" ON)
else() else()
@ -294,7 +288,7 @@ else()
target_link_libraries(datachannel-static PRIVATE OpenSSL::SSL) target_link_libraries(datachannel-static PRIVATE OpenSSL::SSL)
endif() endif()
if (USE_NICE OR NOT USE_JUICE) if (USE_NICE)
find_package(LibNice REQUIRED) find_package(LibNice REQUIRED)
target_compile_definitions(datachannel PRIVATE USE_NICE=1) target_compile_definitions(datachannel PRIVATE USE_NICE=1)
target_compile_definitions(datachannel-static PRIVATE USE_NICE=1) target_compile_definitions(datachannel-static PRIVATE USE_NICE=1)