diff --git a/DownloadOpenBLAS.cmake b/DownloadOpenBLAS.cmake index f78238f28fede1c9467dddf177b31c23dfac098f..8a8c9f70d1e21e6f1bd9dbac157550722e914205 100644 --- a/DownloadOpenBLAS.cmake +++ b/DownloadOpenBLAS.cmake @@ -21,7 +21,7 @@ FetchContent_Populate(OpenBLAS) # Build OpenBLAS # ################## execute_process( - COMMAND cmake -j ${N_CORES} . + COMMAND cmake ${PARALLEL_BUILD_FLAG} ${N_CORES} . WORKING_DIRECTORY ${OPENBLAS_LOCAL_PATH} RESULT_VARIABLE rv ) @@ -30,7 +30,7 @@ if(NOT rv STREQUAL "0") endif() # Add a compile flag -lgfortran and -lpthreads -set_target_properties(${LIB_PREFIX}openblas.${LIB_SUFFIX} LINK_FLAGS "-lgfortran -lpthreads") +set_target_properties(${LIB_PREFIX}openblas.${LIB_SUFFIX} PROPERTIES LINK_FLAGS "-lgfortran -lpthreads") # Build library execute_process(