diff --git a/cmake/external/lapack.cmake b/cmake/external/lapack.cmake index e0f6b0304cc686ee1f25d9d3d9f9febf084f47bb..78c2659a58504e91a3d65f36b39c9a501bd9133f 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 582d3216f486a9dd914c3f096a04710d98fa5fd1..15ee59642094a817fd4af51a9874b6ac24e0db91 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 426e5b53eb45f6e131190ad72c3c9c065fa8c994..801cab62facbb764029bd3b37d3e4d33c183f4ad 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()