On Fri, 2019-03-15 at 17:03 +0100, workbe...@gmx.at wrote:
> Hi everyone,
> 
> i try to use find_packages for clang, i'm on debian and have
> installed
> libclang-4.0-dev package, now i've the files in
> /usr/lib/llvm4-0/lib/libclang-4.0.so and the include in
> /usr/lib/llvm-4.0/include/clang - how can i make find_package find
> those ??

LLVM contains package config files which give you all of this
information. Use find_package() as normal:

find_package(LLVM)

And then invoke CMake with:

$ cmake . -DLLVM_DIR=/usr/lib/llvm-4.0/cmake

Kyle
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to