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 14f74d2 commit 2049628Copy full SHA for 2049628
CMakeLists.txt
@@ -246,11 +246,8 @@ endif ()
246
# add objects to the openblas lib
247
if(NOT NO_LAPACK)
248
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()
+ if (USE_OPENMP AND (NOT NOFORTRAN) AND (NOT MSVC))
+ target_link_libraries(LAPACK_OVERRIDES OpenMP::OpenMP_Fortran)
254
endif()
255
list(APPEND TARGET_OBJS "$<TARGET_OBJECTS:LAPACK_OVERRIDES>")
256
0 commit comments