diff --git a/DownloadOpenBLAS.cmake b/DownloadOpenBLAS.cmake index acaeb1d6eea9b0d1848bcd74681c12ee25a360f0..db099a719fae2bb5f4cf60ae720e03a738daa33d 100644 --- a/DownloadOpenBLAS.cmake +++ b/DownloadOpenBLAS.cmake @@ -11,7 +11,6 @@ FetchContent_Declare( OpenBLAS SOURCE_DIR ${OPENBLAS_LOCAL_PATH} GIT_REPOSITORY https://github.com/xianyi/OpenBLAS.git - # GIT_TAG 9.300.x #TODO do some general solution! ) set(FETCHCONTENT_QUIET FALSE) @@ -27,21 +26,21 @@ execute_process( RESULT_VARIABLE rv ) if(NOT rv STREQUAL "0") - message("OpenBLAS build: cmake: ${rv}") + message("OpenBLAS build: cmake .: ${rv}") endif() execute_process( - COMMAND cmake -j ${N_CORES} --build . + COMMAND cmake --build . -j ${N_CORES} --config Release WORKING_DIRECTORY ${OPENBLAS_LOCAL_PATH} RESULT_VARIABLE rv ) if(NOT rv STREQUAL "0") - message("OpenBLAS build: cmake --build: ${rv}") + message("OpenBLAS build: cmake --build . -j ${N_CORES}: ${rv}") endif() -find_package(BLAS - HINTS - external_dependencies/OpenBLAS) +set(BLAS_DIR external_dependencies/OpenBLAS) + +find_package(BLAS) if(NOT BLAS_FOUND) message(FATAL_ERROR "OpenBLAS was not downloaded successfully!")