CMake can't find C++ compiler inside Qt Creator; project builds successfully in terminal
-
I have set CXX and CMAKE_CXX_COMPILER to /usr/bin/g++ in the user environment. This is the correct path to the binary. I can use g++ in the command line. I have installed cmake, gcc, g++, ninja, and make. g++ is the same version that is specified in the cmake.
Qt Creator is telling me that CXX and CMAKE_CXX_COMPILER are not set. The only qt kit I have successfully finds the C and C++ compilers.
So what could possibly be wrong?This is the output of "cmake <PROJECT_NAME>" in the terminal
The CXX compiler identification is GNU 11.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating doneQt Creator screws up when it gets to CXX in the CMakeLists.txt, but the terminal has no problem with it.