Hi,

Making an OpenMP build on Mac is difficult currently, the OpenMP
implementation in GCC is not functioning correctly when used together
with other threads, so even if you can set GCC in CMake it will not
give you a stable build, you need a newer version of GCC than Xcode
provides. It's tricky, there is some information on that here:
http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Mac/OpenMP

For changing the compiler with CMake I just go into CMakeCache.txt and
change the compiler by changing CMAKE_C_COMPILER and
CMAKE_CXX_COMPILER variables. Maybe there's a better way, but this
usually works for me.

Brecht.

On Mon, Jan 20, 2014 at 2:46 PM, Patrick Fuerst <[email protected]> wrote:
>
>
>
> Hi everyone.
>
>
> I'm try to compile Blender with OpenMP under OSX.  Since Clang doesn't 
> support this yet, I installed gcc-4.8, but somehow CMake ignores the CC and 
> CXX environment variables if I set them to the gcc compiler.
>
> CMake always uses the Clang compiler.  Can some one give me a hint what to do 
> ?  Change the Cmake file ?
>
>
> thanks
>
> Patrick
>
>
>
> --
> Patrick Fürst
> Developer
>
> www.patrickfuerst.at
> [email protected]
> +43 676 9474241
> skype: swazy007
>
> _______________________________________________
> Bf-committers mailing list
> [email protected]
> http://lists.blender.org/mailman/listinfo/bf-committers
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to