[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Mar 10 22:52:48 GMT 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678
--- Comment #24 from Adriaan de Groot <adridg at freebsd.org> ---
A couple of things need(ed) doing:
- -fopenmp also needs to be passed as a link flag for all variants
- -L needs to be passed to base clang
- -I needs to be passed to base clang
With a non-base clang, CMake will report
-- Found OpenMP_C: -fopenmp=libomp (found version "3.1")
With base clang and devel/openmp, CMake will report:
-- Found OpenMP_C: -fopenmp=libomp -I/usr/local/include -L/usr/local/include
(found version "3.1")
Suitable subsets of those flags are set on the exported target for "Modern"
usage. I'll update the attachements (module and diff) in a few minutes.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the kde-freebsd
mailing list