We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3516fff commit 4adfe4dCopy full SHA for 4adfe4d
test/CMakeLists.txt
@@ -21,10 +21,14 @@ endif()
21
if (BUILD_COMPLEX16)
22
list (APPEND OpenBLAS_Tests zblat1 zblat2 zblat3)
23
endif()
24
-
+message (STATUS CCOMP ${CMAKE_C_COMPILER_ID} FCOMP ${CMAKE_Fortran_COMPILER_ID})
25
foreach(test_bin ${OpenBLAS_Tests})
26
add_executable(${test_bin} ${test_bin}.f)
27
target_link_libraries(${test_bin} ${OpenBLAS_LIBNAME})
28
+if (USE_OPENMP AND (${CMAKE_Fortran_COMPILER_ID} STREQUAL GNU) AND (${CMAKE_C_COMPILER_ID} STREQUAL Clang))
29
+ string(REGEX REPLACE "-fopenmp" "" CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}")
30
+target_link_libraries(${test_bin} omp pthread)
31
+endif()
32
endforeach()
33
34
# $1 exec, $2 input, $3 output_result
0 commit comments