[cmake-developers] [PATCH] Add Clang support to FindOpenMP

Chris Pavlina pavlina.chris at gmail.com
Thu Dec 10 10:49:27 EST 2015


Attached is a patch to add the correct option for building OpenMP code using Clang. Per the llvm release notes <http://llvm.org/releases/3.7.0/tools/clang/docs/ReleaseNotes.html> it is necessary to give -fopenmp=libomp to build properly, not just -fopenmp. Tested on 64-bit Linux using clang 3.7.0.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-Clang-support-to-FindOpenMP.patch
Type: text/x-diff
Size: 855 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20151210/c9d403bb/attachment.patch>

More information about the cmake-developers mailing list