mirror of https://github.com/milvus-io/milvus.git
mkdir snappy include directory
Former-commit-id: 250153a3d06d418800ae52ffda48c24b634d3633pull/191/head
parent
8aca3e83fb
commit
441dda4b6f
|
@ -1586,8 +1586,6 @@ macro(build_snappy)
|
||||||
"${SNAPPY_STATIC_LIB}")
|
"${SNAPPY_STATIC_LIB}")
|
||||||
|
|
||||||
ExternalProject_Create_Cache(snappy_ep ${SNAPPY_CACHE_PACKAGE_PATH} "${CMAKE_CURRENT_BINARY_DIR}/snappy_ep-prefix" ${JFROG_USER_NAME} ${JFROG_PASSWORD} ${SNAPPY_CACHE_URL})
|
ExternalProject_Create_Cache(snappy_ep ${SNAPPY_CACHE_PACKAGE_PATH} "${CMAKE_CURRENT_BINARY_DIR}/snappy_ep-prefix" ${JFROG_USER_NAME} ${JFROG_PASSWORD} ${SNAPPY_CACHE_URL})
|
||||||
|
|
||||||
file(MAKE_DIRECTORY "${SNAPPY_INCLUDE_DIR}")
|
|
||||||
else()
|
else()
|
||||||
ExternalProject_Use_Cache(snappy_ep ${SNAPPY_CACHE_PACKAGE_PATH} ${CMAKE_CURRENT_BINARY_DIR})
|
ExternalProject_Use_Cache(snappy_ep ${SNAPPY_CACHE_PACKAGE_PATH} ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
@ -1607,10 +1605,9 @@ macro(build_snappy)
|
||||||
${SNAPPY_CMAKE_ARGS}
|
${SNAPPY_CMAKE_ARGS}
|
||||||
BUILD_BYPRODUCTS
|
BUILD_BYPRODUCTS
|
||||||
"${SNAPPY_STATIC_LIB}")
|
"${SNAPPY_STATIC_LIB}")
|
||||||
|
|
||||||
file(MAKE_DIRECTORY "${SNAPPY_INCLUDE_DIR}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
file(MAKE_DIRECTORY "${SNAPPY_INCLUDE_DIR}")
|
||||||
add_library(snappy STATIC IMPORTED)
|
add_library(snappy STATIC IMPORTED)
|
||||||
set_target_properties(snappy
|
set_target_properties(snappy
|
||||||
PROPERTIES IMPORTED_LOCATION "${SNAPPY_STATIC_LIB}"
|
PROPERTIES IMPORTED_LOCATION "${SNAPPY_STATIC_LIB}"
|
||||||
|
|
Loading…
Reference in New Issue