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

FIX: Trying to fix CI...

parent c95fe74e
No related branches found
No related tags found
No related merge requests found
......@@ -20,12 +20,7 @@ FetchContent_Populate(OpenBLAS)
##################
# Build OpenBLAS #
##################
# Add a compile flag -lgfortran and -lpthreads
set(OLD_CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS})
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lgfortran -lpthread")
execute_process(
cexecute_process(
COMMAND cmake -j ${N_CORES} .
WORKING_DIRECTORY ${OPENBLAS_LOCAL_PATH}
RESULT_VARIABLE rv
......@@ -34,6 +29,8 @@ if(NOT rv STREQUAL "0")
message("OpenBLAS build: cmake .: ${rv}")
endif()
set_target_properties(openblas PROPERTIES LINK_FLAGS -lpthread -lgfortran)
# Build library
execute_process(
COMMAND cmake --build . -j ${N_CORES} --config Release
......
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