在 WSL 中用了
cmake .
命令,
出現(xiàn)問題:
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
解決辦法:
sudo apt-get update
sudo apt-get install -y build-essential