Skip to content

Commit d8cbde6

Browse files
committed
CMake: Demote the mixed linkage check to warning
1 parent 06c09de commit d8cbde6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/system.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ if (USE_OPENMP)
421421
get_target_property(OMP_C_LIB OpenMP::OpenMP_C INTERFACE_LINK_LIBRARIES)
422422
get_target_property(OMP_Fortran_LIB OpenMP::OpenMP_Fortran INTERFACE_LINK_LIBRARIES)
423423
if (NOT OMP_C_LIB STREQUAL OMP_Fortran_LIB)
424-
message(FATAL_ERROR "Multiple OpenMP runtime libraries detected. Mixed OpenMP runtime linkage is dangerous. You may pass -DOpenMP_LANG_LIB_NAMES and -DOpenMP_omp_LIBRARY to manually choose the OpenMP library.")
424+
message(WARNING "Different OpenMP runtime libraries might have been set for OpenBLAS's C and Fortran components. It is recommended to link to a single OpenMP library. You can manually set the OpenMP_C_LIB_NAMES, OpenMP_Fortran_LIB_NAMES and OpenMP_omp_LIBRARY variables.")
425425
endif()
426426
endif ()
427427
endif ()

0 commit comments

Comments
 (0)