<div dir="ltr">Hi,<div><br></div><div>Sorry, but I forgot to add a couple steps.</div><div><br></div><div>5. Set "Enable Modules (C and Objective-C" to NO</div><div><br></div><div>6. Add “/opt/local/include” to  “Header Search Paths”  Add “/opt/local/lib” to “Library Search Paths”.</div><div><br></div><div>7. OpenMP headers can be added via: <span style="font-family:menlo;font-size:12px;font-variant-ligatures:no-common-ligatures;color:rgb(210,143,90)">#include </span><span style="color:rgb(235,150,147);font-family:menlo;font-size:12px;font-variant-ligatures:no-common-ligatures"><libomp/omp.h></span></div><div><span style="color:rgb(235,150,147);font-family:menlo;font-size:12px;font-variant-ligatures:no-common-ligatures"><br></span></div><div>Thanks,</div><div>Jan-Michael</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 30, 2016 at 11:17 PM, Jan-Michael Tressler <span dir="ltr"><<a href="mailto:jtressle@gmail.com" target="_blank">jtressle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>I just wanted to share this with the group.  While I found Xcode - Homebrew directions, I didn’t find any Xcode - Macports directions.</div><div><br></div><div>This brief set of steps worked for me.</div><div><br></div><div><div style="margin:0px;line-height:normal">1. In Macports, I installed llvm clang 3.7 with openmp support:</div><div style="margin:0px;line-height:normal;min-height:14px"><br></div><div style="margin:0px;line-height:normal"><span class="m_8944864877097014046Apple-tab-span" style="white-space:pre-wrap">   </span>sudo port install llvm-3.7</div><div style="margin:0px;line-height:normal;min-height:14px"><br></div><div style="margin:0px;line-height:normal"><span class="m_8944864877097014046Apple-tab-span" style="white-space:pre-wrap">        </span>sudo port install ld64 +ld64_xcode</div><div style="margin:0px;line-height:normal;min-height:14px"><br></div><div style="margin:0px;line-height:normal"><span class="m_8944864877097014046Apple-tab-span" style="white-space:pre-wrap">        </span>sudo port install clang-3.7 +openmp</div><div style="margin:0px;line-height:normal;min-height:14px"><br></div><div style="margin:0px;line-height:normal">2. In Xcode project, I added user-defined settings <b>‘CC’ </b>with value set to “/opt/local/bin/clang-mp-3.7”  (clang path).</div><div style="margin:0px;line-height:normal;min-height:14px"><br></div><div style="margin:0px;line-height:normal">3. Add “-fopenmp” to “Other C Flags”  </div><div style="margin:0px;line-height:normal;min-height:14px"><br></div><div style="margin:0px;line-height:normal">4. Open folder “/opt/local/lib/libomp” and drag libomp.dylib to Xcode project.  This will add the library to the project.</div><div style="margin:0px;line-height:normal;min-height:14px"><br></div><div style="margin:0px;line-height:normal">5. Test openmp functionality.</div><div style="margin:0px;line-height:normal;min-height:14px"><br></div><div style="margin:0px;line-height:normal;min-height:14px"><br></div><div style="margin:0px;line-height:normal;min-height:14px">Hope this helps,</div><div style="margin:0px;line-height:normal;min-height:14px">Jan-Michael</div><div style="margin:0px;line-height:normal;min-height:14px"><br></div></div></div></blockquote></div><br></div>