[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 17 09:58:54 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678

--- Comment #10 from Adriaan de Groot <adridg at freebsd.org> ---
I've looked more closely at the `devel/openmp` port:
 - it installs ${LOCALBASE}/include/omp.h
 - it installs ${LOCALBASE}/lib/libomp.so

So doing a find_file and find_library with /usr/local and $ENV{LOCALBASE}, then
adding the paths to include- and link-flags seems like the best thing to do.
I'm personally a bit cagey about adding them because there are cases where you
**don't** want /usr/local/include in the search path (or you want it in a
specific place in the search order), but let's cross that bridge when we come
to it.

@christian, you want to add that and shoot us some patches, or should we
develop it and submit upstream? In theory my NAS is building nightlies of cmake
and submitting them to cdash (cmake.bionicmutton.org) so you can get automatic
feedback that way.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list