I am trying to get cmake to build cpp code with g ++ since clang is used instead by default. So I use: cmake -D CMAKE_CXX_COMPILER=g++ ../src/CMakeLists.txt , after which cmake checks gcc and g ++ (with success), but nonetheless make VERBOSE=1 gives
/usr/bin/c++ -o CMakeFiles/trial_cpp.dir/trial.cpp.o -c "/Users/Kuba/Code/Sketchpad/Trial project/src/trial.cpp" Linking CXX executable trial_cpp /opt/etlocal/bin/cmake -E cmake_link_script CMakeFiles/trial_cpp.dir/link.txt --verbose=1 /usr/bin/c++ -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/trial_cpp.dir/trial.cpp.o -o trial_cpp
As it calls / usr / bin / C ++ not / usr / bin / g ++, I agree that it still uses clang. Any idea what the problem is? I know that I have g ++ and this is in / usr / bin /. I am running Mac OS X 10.8.2
c ++ g ++ cmake
Puchatek Dec 13 2018-12-12T00: 00Z
source share