15 lines
523 B
Diff
15 lines
523 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -244,10 +244,7 @@
|
|
if(NOT NO_LAPACK)
|
|
add_library(LAPACK_OVERRIDES OBJECT ${LA_SOURCES})
|
|
if (USE_OPENMP AND (NOT NOFORTRAN))
|
|
- # Disable OpenMP for LAPACK Fortran codes on Windows.
|
|
- if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
|
- target_link_libraries(LAPACK_OVERRIDES OpenMP::OpenMP_Fortran)
|
|
- endif()
|
|
+ target_link_libraries(LAPACK_OVERRIDES OpenMP::OpenMP_Fortran)
|
|
endif()
|
|
list(APPEND TARGET_OBJS "$<TARGET_OBJECTS:LAPACK_OVERRIDES>")
|
|
endif()
|