I\'m trying to force cmake to build my cpp code with g++, as by default it uses clang instead. So I use: cmake -D CMAKE_CXX_COMPILER=g++ ../src/CMakeLists.txt a
cmake -D CMAKE_CXX_COMPILER=g++ ../src/CMakeLists.txt
I do it like this instead:
CXX=/usr/bin/g++ cmake ../src/CMakeLists.txt