Hello,
CMake Error at CMakeLists.txt:5 (add_llvm_tool_subdirectory):
Unknown CMake command "add_llvm_tool_subdirectory”.
I’ve included the full output of the cmake command below. The version of cmake installed with apt-get in Ubuntu 13.10 is 2.8.11.2. Adding cmake_minimum_required(VERSION 2.8.8) to the top of CMakeLists.txt did not seem to help.
Any suggestions on how to get this working would be most welcome.
Thank you,
Patryk
The full output of the cmake command is:
patryk@paklbox:~/llvm/tools/build$ cmake --version
cmake version 2.8.11.2
patryk@paklbox:~/llvm/tools/build$ cmake ..
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:5 (add_llvm_tool_subdirectory):
Unknown CMake command "add_llvm_tool_subdirectory".
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!
patryk@paklbox:~/llvm/tools/build$