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

FIX: trying to fix OpenBLAS download and build

parent 1e6cc27f
No related branches found
No related tags found
No related merge requests found
......@@ -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!")
......
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