Skip to content

Commit ed6c223

Browse files
committed
CMake: Improve the wording of the OpenMP mixed linkage check
1 parent fd8f0d4 commit ed6c223

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmake/system.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,11 @@ if (USE_OPENMP)
422422
get_target_property(OMP_F_LIBS OpenMP::OpenMP_Fortran INTERFACE_LINK_LIBRARIES)
423423
if (NOT OMP_C_LIBS STREQUAL OMP_F_LIBS)
424424
message(NOTICE
425-
"OpenMP runtimes detected:\n"
425+
"CMake detected different OpenMP libraries for C and Fortran:\n"
426426
"C=${OMP_C_LIBS}\n"
427427
"Fortran=${OMP_F_LIBS}\n"
428-
"Please check that they are the same OpenMP runtime implementation."
428+
"In case you encounter issues, please check that this is correct.\n"
429+
"You may pass -DOpenMP_<lang>_LIB_NAMES and -DOpenMP_<libname>_LIBRARY to cmake to manually force the OpenMP library."
429430
)
430431
endif()
431432
endif ()

0 commit comments

Comments
 (0)