Unknown CMake command "ogre_config_sample_lib"
OGRE をインストールした後、OGRE Sample フォルダで cmake を使用しようとすると、エラーが発生します。このエラーが発生する前に、次の手順を実行しました。
cd
フォルダーSample/Smoke
、およびそこにmkdir
という名前の新しいディレクトリに。その後実行し、エラーに遭遇します。build
cd
cmake ..
これが私のエラーの詳細情報です:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/ccache/gcc
-- Check for working C compiler: /usr/lib/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:10 (ogre_config_sample_lib):
Unknown CMake command "ogre_config_sample_lib".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!