mkdir zstd include directory

Former-commit-id: 43f3350691d15bb2541ac0ba1b6287b9f5171a0a
This commit is contained in:
quicksilver 2019-08-02 10:56:47 +08:00
parent bb93daef2f
commit 0f53637075

View File

@ -2040,8 +2040,6 @@ macro(build_zstd)
"${ZSTD_STATIC_LIB}")
ExternalProject_Create_Cache(zstd_ep ${ZSTD_CACHE_PACKAGE_PATH} "${CMAKE_CURRENT_BINARY_DIR}/zstd_ep-prefix" ${JFROG_USER_NAME} ${JFROG_PASSWORD} ${ZSTD_CACHE_URL})
file(MAKE_DIRECTORY "${ZSTD_INCLUDE_DIR}")
else()
ExternalProject_Use_Cache(zstd_ep ${ZSTD_CACHE_PACKAGE_PATH} ${CMAKE_CURRENT_BINARY_DIR})
endif()
@ -2061,10 +2059,9 @@ macro(build_zstd)
${ZSTD_SOURCE_URL}
BUILD_BYPRODUCTS
"${ZSTD_STATIC_LIB}")
file(MAKE_DIRECTORY "${ZSTD_INCLUDE_DIR}")
endif()
file(MAKE_DIRECTORY "${ZSTD_INCLUDE_DIR}")
add_library(zstd STATIC IMPORTED)
set_target_properties(zstd
PROPERTIES IMPORTED_LOCATION "${ZSTD_STATIC_LIB}"