Skip to content
Snippets Groups Projects
Commit b04590d1 authored by Martin Beseda's avatar Martin Beseda
Browse files

FIX: trying to fix OpenBLAS download and build

parent 4c4359de
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,6 @@ FetchContent_Declare( ...@@ -11,7 +11,6 @@ FetchContent_Declare(
OpenBLAS OpenBLAS
SOURCE_DIR ${OPENBLAS_LOCAL_PATH} SOURCE_DIR ${OPENBLAS_LOCAL_PATH}
GIT_REPOSITORY https://github.com/xianyi/OpenBLAS.git GIT_REPOSITORY https://github.com/xianyi/OpenBLAS.git
# GIT_TAG 9.300.x #TODO do some general solution!
) )
set(FETCHCONTENT_QUIET FALSE) set(FETCHCONTENT_QUIET FALSE)
...@@ -27,21 +26,21 @@ execute_process( ...@@ -27,21 +26,21 @@ execute_process(
RESULT_VARIABLE rv RESULT_VARIABLE rv
) )
if(NOT rv STREQUAL "0") if(NOT rv STREQUAL "0")
message("OpenBLAS build: cmake: ${rv}") message("OpenBLAS build: cmake .: ${rv}")
endif() endif()
execute_process( execute_process(
COMMAND cmake -j ${N_CORES} --build . COMMAND cmake --build . -j ${N_CORES} --config Release
WORKING_DIRECTORY ${OPENBLAS_LOCAL_PATH} WORKING_DIRECTORY ${OPENBLAS_LOCAL_PATH}
RESULT_VARIABLE rv RESULT_VARIABLE rv
) )
if(NOT rv STREQUAL "0") if(NOT rv STREQUAL "0")
message("OpenBLAS build: cmake --build: ${rv}") message("OpenBLAS build: cmake --build . -j ${N_CORES}: ${rv}")
endif() endif()
find_package(BLAS set(BLAS_DIR external_dependencies/OpenBLAS)
HINTS
external_dependencies/OpenBLAS) find_package(BLAS)
if(NOT BLAS_FOUND) if(NOT BLAS_FOUND)
message(FATAL_ERROR "OpenBLAS was not downloaded successfully!") message(FATAL_ERROR "OpenBLAS was not downloaded successfully!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment