mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 11:43:50 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user