set(SHARED_LIBRARY TRUE)

set(LLVM_NO_RTTI 1)

set(LLVM_USED_LIBS
  clangFrontend clangIndex clangSema clangAST clangLex clangBasic)

set( LLVM_LINK_COMPONENTS
  MC
  support
  )

add_clang_library(CIndex CIndex.cpp)

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  # FIXME: Deal with LLVM_SUBMIT_VERSION?

  set_target_properties(CIndex
    PROPERTIES
    LINK_FLAGS "-avoid-version -Wl,-exported_symbols_list -Wl,${CMAKE_CURRENT_SOURCE_DIR}/CIndex.exports -Wl,-dead_strip -Wl,-seg1addr -Wl,0xE0000000"
    INSTALL_NAME_DIR "@executable_path/../lib"
    )
endif()

set(SHARED_LIBRARY TRUE)

set(LLVM_NO_RTTI 1)

set(LLVM_USED_LIBS
  clangFrontend clangIndex clangSema clangAST clangLex clangBasic)

set( LLVM_LINK_COMPONENTS
  MC
  support
  )

add_clang_library(CIndex CIndex.cpp)

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  # FIXME: Deal with LLVM_SUBMIT_VERSION?

  set_target_properties(CIndex
    PROPERTIES
    LINK_FLAGS "-avoid-version -Wl,-exported_symbols_list -Wl,${CMAKE_CURRENT_SOURCE_DIR}/CIndex.exports -Wl,-dead_strip -Wl,-seg1addr -Wl,0xE0000000"
    INSTALL_NAME_DIR "@executable_path/../lib"
    )
endif()

set_target_properties(CIndex
  PROPERTIES
  LINKER_LANGUAGE CXX)

Make sure that libCIndex links as a C++ library
Make sure that libCIndex links as a C++ library

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@83331 91177308-0d34-0410-b5e6-96231b3b80d8
