Skip to content

Commit ba5eb4b

Browse files
committed
Enable lapack+OpenMP on MinGW-w64.
1 parent f541f22 commit ba5eb4b

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
@@ -243,11 +243,8 @@ endif ()
243243
# add objects to the openblas lib
244244
if(NOT NO_LAPACK)
245245
add_library(LAPACK_OVERRIDES OBJECT ${LA_SOURCES})
246-
if (USE_OPENMP AND (NOT NOFORTRAN))
247-
# Disable OpenMP for LAPACK Fortran codes on Windows.
248-
if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
249-
target_link_libraries(LAPACK_OVERRIDES OpenMP::OpenMP_Fortran)
250-
endif()
246+
if (USE_OPENMP AND (NOT NOFORTRAN) AND (NOT MSVC))
247+
target_link_libraries(LAPACK_OVERRIDES OpenMP::OpenMP_Fortran)
251248
endif()
252249
list(APPEND TARGET_OBJS "$<TARGET_OBJECTS:LAPACK_OVERRIDES>")
253250
endif()

0 commit comments

Comments
 (0)