[cfe-users] clang, gcc, g++ ABI, and CMake

Sean McBride sean at rogue-research.com
Tue Aug 13 06:19:56 PDT 2013


On Sun, 11 Aug 2013 14:59:20 -0500, Tom Browder said:

>1.  Has anyone a working, general solution for driving a CMake-built
>project with clang or clang++ (using build directories not polluted by
>gcc/g++ attempts)?

Not sure what you mean exactly... sounds like more of a CMake question, but if I understand you correctly, you just need to tell cmake which compiler to use, ex:

$ cd bin-dir
$ CC=clang CXX=clang++ ccmake /path/to/src

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada






More information about the cfe-users mailing list