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 .
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
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?
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 .