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 f541f22 commit ba5eb4bCopy full SHA for ba5eb4b
CMakeLists.txt
@@ -243,11 +243,8 @@ endif ()
243
# add objects to the openblas lib
244
if(NOT NO_LAPACK)
245
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()
+ if (USE_OPENMP AND (NOT NOFORTRAN) AND (NOT MSVC))
+ target_link_libraries(LAPACK_OVERRIDES OpenMP::OpenMP_Fortran)
251
endif()
252
list(APPEND TARGET_OBJS "$<TARGET_OBJECTS:LAPACK_OVERRIDES>")
253
0 commit comments