From 72833f679eedfe67d0bea4d5a0059d4f9b49c478 Mon Sep 17 00:00:00 2001 From: risemeup1 <62429225+risemeup1@users.noreply.github.com> Date: Sun, 11 Jun 2023 21:27:31 +0800 Subject: [PATCH] Revert "[cmake] fix cmake with the same name already exists (#54391)" This reverts commit a6b9120a2a4e207007104eedc124f250b371983d. --- cmake/external/lapack.cmake | 4 +--- cmake/external/libmct.cmake | 4 ---- cmake/external/mklml.cmake | 3 --- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/cmake/external/lapack.cmake b/cmake/external/lapack.cmake index e0f6b0304cc..78c2659a585 100644 --- a/cmake/external/lapack.cmake +++ b/cmake/external/lapack.cmake @@ -91,9 +91,6 @@ find_file( if(LOCAL_LAPACK_LIB_ZIP) file(MD5 ${LAPACK_DOWNLOAD_DIR}/${LAPACK_FILE} LAPACK_MD5) if(NOT LAPACK_MD5 EQUAL LAPACK_URL_MD5) - # clean build file - file(REMOVE_RECURSE ${LAPACK_PREFIX_DIR}) - file(REMOVE_RECURSE ${LAPACK_INSTALL_DIR}) download_lapack() endif() else() @@ -104,6 +101,7 @@ ExternalProject_Add( extern_lapack ${EXTERNAL_PROJECT_LOG_ARGS} URL ${LAPACK_DOWNLOAD_DIR}/${LAPACK_FILE} + URL_MD5 ${LAPACK_URL_MD5} DOWNLOAD_DIR ${LAPACK_DOWNLOAD_DIR} SOURCE_DIR ${LAPACK_LIB_DIR} PREFIX ${LAPACK_PREFIX_DIR} diff --git a/cmake/external/libmct.cmake b/cmake/external/libmct.cmake index 582d3216f48..15ee5964209 100644 --- a/cmake/external/libmct.cmake +++ b/cmake/external/libmct.cmake @@ -43,10 +43,6 @@ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH}" "${LIBMCT_ROOT}/lib") include_directories(${LIBMCT_INC_DIR}) -# clean build file -file(REMOVE_RECURSE ${LIBMCT_PREFIX_DIR}) -file(REMOVE_RECURSE ${LIBMCT_INSTALL_DIR}) - file( DOWNLOAD ${LIBMCT_URL} ${LIBMCT_DOWNLOAD_DIR}/${LIBMCT_DOWNLOAD_FILE} TLS_VERIFY OFF diff --git a/cmake/external/mklml.cmake b/cmake/external/mklml.cmake index 426e5b53eb4..801cab62fac 100644 --- a/cmake/external/mklml.cmake +++ b/cmake/external/mklml.cmake @@ -81,9 +81,6 @@ find_file( if(LOCAL_MKLML_LIB_ZIP) file(MD5 ${MKLML_DOWNLOAD_DIR}/${MKLML_FILE} MKLML_MD5) if(NOT MKLML_MD5 EQUAL MKLML_URL_MD5) - # clean build file - file(REMOVE_RECURSE ${MKLML_PREFIX_DIR}) - file(REMOVE_RECURSE ${MKLML_INSTALL_DIR}) download_mklml() endif() else() -- GitLab