diff --git a/CMakeLists.txt b/CMakeLists.txt index d08a0d6..3c96753 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,12 +15,6 @@ 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) -if(USE_NICE) - option(USE_JUICE "Use libjuice" OFF) -else() - option(USE_JUICE "Use libjuice" ON) -endif() - if(USE_GNUTLS) option(USE_NETTLE "Use Nettle in libjuice" ON) else() @@ -294,7 +288,7 @@ else() target_link_libraries(datachannel-static PRIVATE OpenSSL::SSL) endif() -if (USE_NICE OR NOT USE_JUICE) +if (USE_NICE) find_package(LibNice REQUIRED) target_compile_definitions(datachannel PRIVATE USE_NICE=1) target_compile_definitions(datachannel-static PRIVATE USE_NICE=1)