Link OpenMP clang+gfortran builds with libomp
This commit is contained in:
parent
42d35f1084
commit
ba4ea7bb07
|
@ -25,6 +25,13 @@ endif()
|
||||||
foreach(test_bin ${OpenBLAS_Tests})
|
foreach(test_bin ${OpenBLAS_Tests})
|
||||||
add_executable(${test_bin} ${test_bin}.f)
|
add_executable(${test_bin} ${test_bin}.f)
|
||||||
target_link_libraries(${test_bin} ${OpenBLAS_LIBNAME})
|
target_link_libraries(${test_bin} ${OpenBLAS_LIBNAME})
|
||||||
|
if (USE_OPENMP)
|
||||||
|
if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
|
||||||
|
if (CMAKE_C_COMPILER_ID STREQUAL CLANG)
|
||||||
|
target_link_libraries(${test_bin} omp)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# $1 exec, $2 input, $3 output_result
|
# $1 exec, $2 input, $3 output_result
|
||||||
|
|
Loading…
Reference in New Issue