[CastXML] Build with an LLVM different from the installed version

HSK seumaryo at gmail.com
Tue May 9 01:29:55 EDT 2017


Hello,

I am building CastXML on CentOS where LLVM/Clang 3.4.2 is installed and
3.9.0 has been built in another directory. Then Cmake emitted an error.

[root at algenib CastXML]# cmake ./src
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- 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:48 (llvm_map_components_to_libnames):
  Unknown CMake command "llvm_map_components_to_libnames".

The below also failed in the same error.

[root at algenib CastXML]# CC=clang CXX=clang++
LLVM_DIR=/root/llvm-3.9.0.build cmake ./src

Should the CMakeLists.txt be modified to work in my environment? Please
advise. Thank you.

Ryo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/castxml/attachments/20170509/9f1f42de/attachment.html>


More information about the CastXML mailing list