문제

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?

도움이 되었습니까?

해결책

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 .
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top