Skip to content

Commit

Permalink
Use symlinked Clang library target
Browse files Browse the repository at this point in the history
In Clang 3.7, the library target is a symlink of the soversion one.
Since it will be copied in the project folder, we need the symlinked
library.
  • Loading branch information
micbou committed Sep 3, 2015
1 parent 9b9766b commit 61ba198
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cpp/ycm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,12 @@ if ( EXTERNAL_LIBCLANG_PATH OR USE_SYSTEM_LIBCLANG )
endif()
endif()

set( LIBCLANG_TARGET ${EXTERNAL_LIBCLANG_PATH} )
# In Clang 3.7, the library target is a symlink of the soversion one.
# Since it will be copied in the project folder, we need the symlinked
# library.
get_filename_component( LIBCLANG_TARGET "${EXTERNAL_LIBCLANG_PATH}" REALPATH )
message(
"Using external libclang: ${EXTERNAL_LIBCLANG_PATH}" )
"Using external libclang: ${LIBCLANG_TARGET}" )
else()
set( LIBCLANG_TARGET )
endif()
Expand Down

0 comments on commit 61ba198

Please sign in to comment.