-1
私はCMakeを使ってプロジェクトをコンパイルしています。これは私の情報源への道です:https://github.com/Ro6afF/Snake。私はこのCMakeのエラーがわかりません
cd build && cmake ..
を入力すると、それはこれを印刷します
CMake Error: Could not find cmake module file: CMakeDetermineSnakeCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_Snake_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_Snake_COMPILER
CMake Error: Could not find cmake module file: /home/asd/snake/build/CMakeFiles/3.5.0/CMakeSnakeCompiler.cmake
CMake Error at CMakeLists.txt:3 (Project):
No CMAKE_Snake_COMPILER could be found.
Tell CMake where to find the compiler by setting the CMake cache entry
CMAKE_Snake_COMPILER to the full path to the compiler, or to the compiler
name if it is in the PATH.
CMake Error: Could not find cmake module file: CMakeSnakeInformation.cmake
CMake Error: CMAKE_Snake_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "/home/asd/snake/build/CMakeFiles/CMakeOutput.log".
あなたはこのエラーを修正する方法を私に説明できますか? ありがとうございます!
のようなものにコード: 'PROJECT(OpenGLのスネーク)'。 [docs](https://cmake.org/cmake/help/v3.0/command/project.html)を見てください。これは 'Snake'を言語パラメータにします。 –
@DanMašekありがとう!スペースを取り除くと、それは壊れます。 –
元の 'CMakeLists.txt'が質問に載っていれば、将来の読者にとっては良いことです。外部リンクに修正バージョンが含まれるようになりました。 – drescherjm