From b04590d14cfeadc65cf4cb4f59c91f6c4e3a7b8e Mon Sep 17 00:00:00 2001 From: Martin Beseda <martin.beseda@vsb.cz> Date: Tue, 19 Feb 2019 09:44:41 +0100 Subject: [PATCH] FIX: trying to fix OpenBLAS download and build --- DownloadOpenBLAS.cmake | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/DownloadOpenBLAS.cmake b/DownloadOpenBLAS.cmake index acaeb1d6..db099a71 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!") -- GitLab