[Openmp-commits] [openmp] [OpenMP] Link against libm on OpenBSD (PR #70614)
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Mon Oct 30 08:11:03 PDT 2023
================
@@ -140,7 +140,7 @@ function(libomp_get_libflags libflags)
if(LIBOMP_HAVE_SHM_OPEN_WITH_LRT)
libomp_append(libflags_local -lrt)
endif()
- if(${CMAKE_SYSTEM_NAME} MATCHES "DragonFly|FreeBSD")
----------------
shiltian wrote:
I think `check_library_exists` is not for the purpose of this case. For example, `libm` exists on a lot of systems, but we only want to link against it with proper linker flag when OS is BSD.
https://github.com/llvm/llvm-project/pull/70614
More information about the Openmp-commits
mailing list