Cant get openMP to work in xcode

I have a problem getting openMP to work in xcode.

I do include "omp.h" as one should. It works fine if I compile in terminal

g++ source.cpp -fopenmp

and Indeed it also parallelize as it should. Now I have tried to get it to work in xcode as follows;

change compiler to LLVM GCC 4.2 and 'enable openMP support'.

Despite this, it does not work. I get

"_GOMP_paralell_end", referenced from source::method.

I have google a lot, but not found any solution. Does anyone have an Idea?