outro pessoa <outro.pes...@gmail.com> writes: > Did it require any extra options outside of: clang bin/, clang lib/ , and > the implicit link list when you started using "clang-is-compiler"?
It can be as easy as: CC=clang CXX=clang cmake ... or alternatively cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ... Use a full path to clang/clang++ if they are installed on custom directories outside of PATH. If you wish tho use libc++ or other goodies I suppose(*) that you can add the options in your CMakeLists.txt: if( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" ) ... endif() [*] I don't use those libraries, so never checked that the above works. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake