This patch fixes the cmake build to create libclang.so/libclang.a on linux

instead of liblibclang.so/liblibclang.a.

Patch by Arnaud de Grandmaison.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156809 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Manuel Klimek 2012-05-15 08:58:48 +00:00
Родитель c608c3c078
Коммит 57daf55d43
1 изменённых файлов: 14 добавлений и 6 удалений

Просмотреть файл

@ -53,11 +53,19 @@ if( LLVM_ENABLE_PIC )
set(SHARED_LIBRARY TRUE)
add_clang_library(libclang ${SOURCES})
if(WIN32)
set_target_properties(libclang
PROPERTIES
OUTPUT_NAME "libclang"
VERSION ${LIBCLANG_LIBRARY_VERSION}
DEFINE_SYMBOL _CINDEX_LIB_)
else()
set_target_properties(libclang
PROPERTIES
OUTPUT_NAME "clang"
VERSION ${LIBCLANG_LIBRARY_VERSION}
DEFINE_SYMBOL _CINDEX_LIB_)
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(LIBCLANG_LINK_FLAGS
@ -86,5 +94,5 @@ if( NOT BUILD_SHARED_LIBS AND NOT WIN32 )
set_target_properties(${LIBCLANG_STATIC_TARGET_NAME}
PROPERTIES
OUTPUT_NAME "libclang")
OUTPUT_NAME "clang")
endif()