From b442d55e08fce2166e2700648dd0e0f436cbb00f Mon Sep 17 00:00:00 2001 From: Martin Beseda <martin.beseda@vsb.cz> Date: Thu, 21 Feb 2019 05:07:03 +0100 Subject: [PATCH] FIX: Trying to fix CI... --- DownloadOpenBLAS.cmake | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/DownloadOpenBLAS.cmake b/DownloadOpenBLAS.cmake index ac640f14..d93d0094 100644 --- a/DownloadOpenBLAS.cmake +++ b/DownloadOpenBLAS.cmake @@ -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 -- GitLab