Skip to content

Commit 2049628

Browse files
committed
Enable lapack+OpenMP on MinGW-w64.
1 parent 14f74d2 commit 2049628

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,8 @@ endif ()
246246
# add objects to the openblas lib
247247
if(NOT NO_LAPACK)
248248
add_library(LAPACK_OVERRIDES OBJECT ${LA_SOURCES})
249-
if (USE_OPENMP AND (NOT NOFORTRAN))
250-
# Disable OpenMP for LAPACK Fortran codes on Windows.
251-
if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
252-
target_link_libraries(LAPACK_OVERRIDES OpenMP::OpenMP_Fortran)
253-
endif()
249+
if (USE_OPENMP AND (NOT NOFORTRAN) AND (NOT MSVC))
250+
target_link_libraries(LAPACK_OVERRIDES OpenMP::OpenMP_Fortran)
254251
endif()
255252
list(APPEND TARGET_OBJS "$<TARGET_OBJECTS:LAPACK_OVERRIDES>")
256253
endif()

0 commit comments

Comments
 (0)