diff --git a/cmake/external/mkldnn.cmake b/cmake/external/mkldnn.cmake index 2b744792738f5d6146c15c8c05110e189d52d236..615b1ddf3501974c40e278704541cf568123d507 100644 --- a/cmake/external/mkldnn.cmake +++ b/cmake/external/mkldnn.cmake @@ -20,7 +20,7 @@ INCLUDE(ExternalProject) SET(MKLDNN_PROJECT "extern_mkldnn") SET(MKLDNN_SOURCES_DIR ${THIRD_PARTY_PATH}/mkldnn) -SET(MKLDNN_INSTALL_DIR ${THIRD_PARTY_PATH}/install/mkldnn) +SET(MKLDNN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/opt/paddle/third_party/mkldnn") SET(MKLDNN_INCLUDE_DIR "${MKLDNN_INSTALL_DIR}/include" CACHE PATH "mkldnn include directory." FORCE) IF(WIN32) diff --git a/cmake/external/mklml.cmake b/cmake/external/mklml.cmake index dff51baec34554381cfac0476910c46e4de3d50d..e1925a07d00c2cf0589a44e52a09defecba8b355 100644 --- a/cmake/external/mklml.cmake +++ b/cmake/external/mklml.cmake @@ -21,7 +21,7 @@ INCLUDE(ExternalProject) SET(MKLML_PROJECT "extern_mklml") SET(MKLML_VER "mklml_lnx_2018.0.20170425") SET(MKLML_URL "https://github.com/01org/mkl-dnn/releases/download/v0.9/${MKLML_VER}.tgz") -SET(MKLML_DOWNLOAD_DIR ${THIRD_PARTY_PATH}/mklml) +SET(MKLML_DOWNLOAD_DIR "${CMAKE_INSTALL_PREFIX}/opt/paddle/third_party/mklml") SET(MKLML_ROOT ${MKLML_DOWNLOAD_DIR}/${MKLML_VER}) SET(MKLML_INC_DIR ${MKLML_ROOT}/include)