Browse Source

define USE_SYSTEM_SHARED_LIB in config.h when cmake with -DWITH_EMBEDDED_SRC=OF

set USE_SYSTEM_SHARED_LIB to TRUE to let cmakedefine take effect in cmake/config.h.cmake
pull/2316/head
ideal 6 years ago
parent
commit
55647ce5f2
1 changed files with 5 additions and 0 deletions
  1. 5
      CMakeLists.txt

5
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)

Loading…
Cancel
Save