File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -163,10 +163,11 @@ if(ENABLE_SHARED)
163
163
VERSION ${LIBCLANG_LIBRARY_VERSION}
164
164
DEFINE_SYMBOL _CINDEX_LIB_ )
165
165
if (CYGWIN )
166
- # cygclang.dll is needed in build-tree for testsuite of python bindings.
166
+ # We need cygclang.dll in build-tree additional to installed-tree for testsuite of python bindings.
167
+ set (plain_name "$<TARGET_FILE_DIR:libclang>/$<TARGET_FILE_PREFIX:libclang>clang$<TARGET_FILE_SUFFIX:libclang>" )
167
168
add_custom_command (TARGET libclang POST_BUILD
168
- COMMAND ${CMAKE_COMMAND} -E create_symlink "$<TARGET_FILE_NAME:libclang>"
169
- "$<TARGET_FILE_DIR:libclang>/$<TARGET_FILE_PREFIX:libclang>clang$<TARGET_FILE_SUFFIX:libclang>" )
169
+ COMMAND ${CMAKE_COMMAND} -E create_symlink "$<TARGET_FILE_NAME:libclang>" " ${plain_name} " )
170
+ install ( FILES " ${plain_name} " DESTINATION " ${CMAKE_INSTALL_BINDIR} " COMPONENT libclang )
170
171
endif ()
171
172
# Avoid declaring clang c++ symbols that are statically linked into libclang as dllimport'ed.
172
173
# If llvm/libclang-cpp dll is also being built for windows clang c++ symbols will still be
You can’t perform that action at this time.
0 commit comments