From 2bba0823e115ac529f47b0b75771065c3565fee7 Mon Sep 17 00:00:00 2001 From: quicksilver Date: Fri, 2 Aug 2019 10:53:27 +0800 Subject: [PATCH] mkdir thrift include directory Former-commit-id: eab85cf64240081635280d936f1b76d9b9da3016 --- cpp/cmake/ThirdPartyPackages.cmake | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cpp/cmake/ThirdPartyPackages.cmake b/cpp/cmake/ThirdPartyPackages.cmake index 914e246a..65c9c1f6 100644 --- a/cpp/cmake/ThirdPartyPackages.cmake +++ b/cpp/cmake/ThirdPartyPackages.cmake @@ -1804,9 +1804,6 @@ macro(build_thrift) ${EP_LOG_OPTIONS}) ExternalProject_Create_Cache(thrift_ep ${THRIFT_CACHE_PACKAGE_PATH} "${CMAKE_CURRENT_BINARY_DIR}/thrift_ep-prefix" ${JFROG_USER_NAME} ${JFROG_PASSWORD} ${THRIFT_CACHE_URL}) - - # The include directory must exist before it is referenced by a target. - file(MAKE_DIRECTORY "${THRIFT_INCLUDE_DIR}") else() ExternalProject_Use_Cache(thrift_ep ${THRIFT_CACHE_PACKAGE_PATH} ${CMAKE_CURRENT_BINARY_DIR}) endif() @@ -1827,11 +1824,10 @@ macro(build_thrift) DEPENDS ${THRIFT_DEPENDENCIES} ${EP_LOG_OPTIONS}) - - # The include directory must exist before it is referenced by a target. - file(MAKE_DIRECTORY "${THRIFT_INCLUDE_DIR}") endif() + # The include directory must exist before it is referenced by a target. + file(MAKE_DIRECTORY "${THRIFT_INCLUDE_DIR}") add_library(thrift STATIC IMPORTED) set_target_properties(thrift PROPERTIES IMPORTED_LOCATION "${THRIFT_STATIC_LIB}" -- GitLab