[LLVMdev] problem with my LLVM pass
junkoi2004 at gmail.com
Fri Oct 5 00:34:46 PDT 2012
i am wondering if this link is still updated?
i follow the instruction from the link, and create in my ~/test/
directory the CMakeLists.txt with following content:
# Define add_llvm_* macro's.
inside test/, i put Hello/ directory, copied from
then inside test/, i tried to compile:
test$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- 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 Warning at CMakeLists.txt:1 (find_package):
Could not find module FindLLVM.cmake or a configuration file for package
Adjust CMAKE_MODULE_PATH to find FindLLVM.cmake or set LLVM_DIR to the
directory containing a CMake configuration file for LLVM. The file will
have one of the following names:
CMake Error at CMakeLists.txt:4 (include):
include could not find load file:
CMake Error at Hello/CMakeLists.txt:1 (add_llvm_loadable_module):
Unknown CMake command "add_llvm_loadable_module".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
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!
any idea on how to fix the problem?
More information about the llvm-dev