Hi, We¹ve just started building our OpenMP based code using Xcode on Mac OS X 10.6. When we build using Makefiles with OpenMP turned on (through the FindOpenMP.cmake module), all goes well. Under Xcode, however, we are not linking to the OpenMP libraries. I tracked this down to a difference in the final link line.
Under Makefiles we have: Linking CXX executable ../bin/NoOp <snip> /usr/bin/c++ <snip> -fopenmp Under Xcode, the fopenmp flag is missing. I suspected that the Makefiles are using OpenMP_CXX_FLAGS ³under the hood², but the same code is not being used by the Xcode generator. Can anyone help out with this issue? Cheers, -dan P.S. The simple workaround is to set CMAKE_EXE_LINKER_FLAGS:STRING=-fopenmp in CMakeCache.txt -- Daniel Blezek, PhD Medical Imaging Informatics Innovation Center P 127 or (77) 8 8886 T 507 538 8886 E blezek.dan...@mayo.edu Mayo Clinic 200 First St. S.W. Harwick SL-44 Rochester, MN 55905 mayoclinic.org
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake