Skip to content

Commit

Permalink
Revert "[cmake] fix cmake with the same name already exists (#54391)" (
Browse files Browse the repository at this point in the history
…#54539)

This reverts commit a6b9120.
  • Loading branch information
risemeup1 authored Jun 11, 2023
1 parent 9037c1c commit 667c870
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
4 changes: 1 addition & 3 deletions cmake/external/lapack.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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}
Expand Down
4 changes: 0 additions & 4 deletions cmake/external/libmct.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions cmake/external/mklml.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 667c870

Please sign in to comment.