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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Apr 7 22:35:06 UTC 2018


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

--- Comment #13 from Adriaan de Groot <adridg at freebsd.org> ---
For CMake 3.11, a new issue is introduced where `find_package(OpenMP)` does the
right thing and finds -fopenmp as the right flag, and then it goes looking for
supporting libraries. With CMake 3.11, NO_ROOT_PATH (?) is used, and that
prevents it from finding `-lpthread`.

I'm going to solve that with a hammer in the FreeBSD packaging with

```
set(OpenMP_pthread_LIBRARY -lpthread)
```

near the top of the module. That stops it from being searched for.

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


More information about the kde-freebsd mailing list