diff --git a/CMakeLists.txt b/CMakeLists.txt index 04982070..6f061b67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,11 @@ option(WITH_EMBEDDED_SRC "build with embedded libcork, libipset, and libbloom so # Will set GIT_EXECUTABLE and GIT_FOUND # find_package(Git) +# When choose to not use embedded libcork, libipset and libboom, use libs shipped by system +if (NOT WITH_EMBEDDED_SRC) + set(USE_SYSTEM_SHARED_LIB TRUE) +endif () + # Run platform tests include(${CMAKE_SOURCE_DIR}/cmake/configure.cmake) configure_file(${CMAKE_SOURCE_DIR}/cmake/config.h.cmake ${CMAKE_BINARY_DIR}/src/config.h)