From 8036bb634876cc55e3592918271bf13d68151582 Mon Sep 17 00:00:00 2001 From: Zeh Rizzatti Date: Wed, 6 Feb 2013 17:00:07 -0300 Subject: [PATCH] Copy libclang inside the python dir --- cpp/ycm/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt index 75ad16dd..83e58638 100644 --- a/cpp/ycm/CMakeLists.txt +++ b/cpp/ycm/CMakeLists.txt @@ -208,6 +208,14 @@ target_link_libraries( ${PROJECT_NAME} ${LIBCLANG_TARGET} ) +if ( LIBCLANG_TARGET ) + add_custom_command( + TARGET ${PROJECT_NAME} + POST_BUILD + COMMAND cp "${LIBCLANG_TARGET}" "$" + ) +endif() + ############################################################################# # Things are a bit different on Macs when using an external libclang.dylib; here