diff options
| author | liuwentan <[email protected]> | 2023-02-20 10:57:40 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2023-02-20 10:57:40 +0800 |
| commit | bbed56db80cbdc994a3f9a937cdf62e3316e6008 (patch) | |
| tree | 2e465495f6be580352b43a06186d23fc666c82c9 /vendor | |
| parent | be5d1577331dcd35f4930edaf6f0df9931ee08ff (diff) | |
compile table support conjunction, ip_plugin support cidr
Diffstat (limited to 'vendor')
| -rw-r--r-- | vendor/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt index bb1f6e3..045de09 100644 --- a/vendor/CMakeLists.txt +++ b/vendor/CMakeLists.txt @@ -1,5 +1,5 @@ # CMakeFiles for 3rd vendor library - +cmake_minimum_required(VERSION 3.5) include(ExternalProject) set(VENDOR_ROOT ${CMAKE_BINARY_DIR}/vendor) @@ -84,8 +84,13 @@ file(MAKE_DIRECTORY ${VENDOR_BUILD}/include) add_library(hiredis-static STATIC IMPORTED GLOBAL) add_dependencies(hiredis-static hiredis) -set_property(TARGET hiredis-static PROPERTY IMPORTED_LOCATION ${VENDOR_BUILD}/lib64/libhiredisd.a) + set_property(TARGET hiredis-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${VENDOR_BUILD}/include) +if(CMAKE_BUILD_TYPE STREQUAL "Debug") +set_property(TARGET hiredis-static PROPERTY IMPORTED_LOCATION ${VENDOR_BUILD}/lib64/libhiredisd.a) +else() +set_property(TARGET hiredis-static PROPERTY IMPORTED_LOCATION ${VENDOR_BUILD}/lib64/libhiredis.a) +endif() #igraph-0.7.1 ExternalProject_Add(igraph PREFIX igraph |
