@@ -44,10 +44,6 @@ else()
44
44
c_${float_char} blas1.c)
45
45
endif ()
46
46
target_link_libraries (x${float_char} cblat1 ${OpenBLAS_LIBNAME} )
47
- if (USE_OPENMP AND (${CMAKE_Fortran_COMPILER_ID} STREQUAL GNU) AND (${CMAKE_C_COMPILER_ID} STREQUAL Clang))
48
- string (REGEX REPLACE "-fopenmp" "" CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} " )
49
- target_link_libraries (x${float_char} cblat1 omp pthread)
50
- endif ()
51
47
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "QNX" )
52
48
target_link_libraries (x${float_char} cblat1 m)
53
49
endif ()
@@ -73,10 +69,6 @@ else()
73
69
constant.c)
74
70
endif ()
75
71
target_link_libraries (x${float_char} cblat2 ${OpenBLAS_LIBNAME} )
76
- if (USE_OPENMP AND (${CMAKE_Fortran_COMPILER_ID} STREQUAL GNU) AND (${CMAKE_C_COMPILER_ID} STREQUAL Clang))
77
- string (REGEX REPLACE "-fopenmp" "" CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} " )
78
- target_link_libraries (x${float_char} cblat2 omp pthread)
79
- endif ()
80
72
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "QNX" )
81
73
target_link_libraries (x${float_char} cblat2 m)
82
74
endif ()
@@ -124,20 +116,12 @@ else()
124
116
endif ()
125
117
endif ()
126
118
target_link_libraries (x${float_char} cblat3 ${OpenBLAS_LIBNAME} )
127
- if (USE_OPENMP AND (${CMAKE_Fortran_COMPILER_ID} STREQUAL GNU) AND (${CMAKE_C_COMPILER_ID} STREQUAL Clang))
128
- string (REGEX REPLACE "-fopenmp" "" CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} " )
129
- target_link_libraries (x${float_char} cblat3 omp pthread)
130
- endif ()
131
119
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "QNX" )
132
120
target_link_libraries (x${float_char} cblat3 m)
133
121
endif ()
134
122
if (USE_GEMM3M)
135
123
if ((${float_char} STREQUAL "c" ) OR (${float_char} STREQUAL "z" ))
136
124
target_link_libraries (x${float_char} cblat3_3m ${OpenBLAS_LIBNAME} )
137
- if (USE_OPENMP AND (${CMAKE_Fortran_COMPILER_ID} STREQUAL GNU) AND (${CMAKE_C_COMPILER_ID} STREQUAL Clang))
138
- string (REGEX REPLACE "-fopenmp" "" CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} " )
139
- target_link_libraries (x${float_char} cblat3 omp pthread)
140
- endif ()
141
125
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "QNX" )
142
126
target_link_libraries (x${float_char} cblat3_3m m)
143
127
endif ()
0 commit comments