I am trying to build llvm from source using Cmake. I have an error coming when Cmake is trying to build it : Unknown CMake command "add_llvm_tool".
I don't know why there is this error, here is my CMakeLists.txt file
cmake_minimum_required(VERSION 3.2) set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Core Object Support ) add_llvm_tool(llvm-nm llvm-nm.cpp )