From 61b4808513807506daa2dc1deddda18a65990727 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sat, 9 Feb 2013 11:11:18 -0800 Subject: [PATCH] Trying to help cmake find libclang.so on Arch Fixes #11. Also relevant to issue #28. --- cpp/ycm/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt index 65b12785..3978c90a 100644 --- a/cpp/ycm/CMakeLists.txt +++ b/cpp/ycm/CMakeLists.txt @@ -171,7 +171,9 @@ endif() if ( EXTERNAL_LIBCLANG_PATH OR USE_SYSTEM_LIBCLANG ) if ( USE_SYSTEM_LIBCLANG ) # Need TEMP because find_library does not work with an option variable - find_library( TEMP clang ) + find_library( TEMP clang PATHS + /usr/lib + /usr/lib/llvm ) set( EXTERNAL_LIBCLANG_PATH ${TEMP} ) else() # For Macs, we do things differently; look further in this file.