Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I found the most easy way to change the compiler CMake uses, is by adding the following to the respective CMakeList.txt file:

set(CMAKE_CXX_COMPILER "clang")
set(CMAKE_C_COMPILER "clang")

I found the most easy way to change the compiler CMake uses, is by adding the following to the respective CMakeList.txt file:

set(CMAKE_CXX_COMPILER "clang")
"clang++")
set(CMAKE_C_COMPILER "clang")