Question

I want to build ParadiseEO on OS X 10.9. It uses cmake to configure. While it configured, it couldn't find any openmp support:

-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0

enter image description here

Looks like it's a problem of Clang. Meanwhile, I do have gcc-4.8 installed through macports with openmp support. My question is, what should I do to make cmake recognize my gcc-4.8?

Was it helpful?

Solution

My question is, what should I do to make cmake recognize my gcc-4.8?

You can use CMAKE_CXX_COMPILER:

cmake -DCMAKE_CXX_COMPILER=gcc .

Or CXX environment variable:

export CXX=gcc
cmake .
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top