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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 16 23:25:47 UTC 2017


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

--- Comment #8 from Adriaan de Groot <adridg at freebsd.org> ---
@christian, clang -fopenmp itself works, e.g.:

```
    $ echo "int main() { return 0; }" > t.c
    $ cc -fopenmp -c t.c
```

To know if the flag itself works, `-fopenmp -Werror` could be used (assuming
clang), without needing to `#include <omp.h>`. That would weed out base clang
on 10.x.

Still, this looks like a case for doing a patch in the packaging, where we can
`try_compile()` a source file that **just** does the include, then possibly use
`find_file()`, to pin down where omp.h actually lives.

There's additional unfortunate variation between the various machines I have
and where OpenMP lives on them. I think the right thing to do is patch it here,
and leave upstream FindOpenMP alone.

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


More information about the kde-freebsd mailing list