Skip to content

Commit

Permalink
Trying to help cmake find libclang.so on Arch
Browse files Browse the repository at this point in the history
Fixes #11. Also relevant to issue #28.
  • Loading branch information
Valloric committed Feb 9, 2013
1 parent 4b5cbdb commit 61b4808
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpp/ycm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 61b4808

Please sign in to comment.