1. 08 May, 2018 2 commits
    • Kevin Funk's avatar
      clang: CLANG_LIBCLANG_LIB is no more · 219ae842
      Kevin Funk authored
      Got renamed to CLANG_CLANG_LIB
      219ae842
    • Kevin Funk's avatar
      clang: Force linking against full lib path · 46126881
      Kevin Funk authored
      Force link against full library path:
        /usr/lib/x86_64-linux-gnu/libclang-5.0.so.1
      
      ... instead of:
        -lclang
      
      target_link_libraries has some heuristics where it prefers dropping the
      full library path in case the library is detected within alternative
      library search paths, cf.
        https://cmake.org/cmake/help/latest/policy/CMP0060.html#policy:CMP0060
      
      This is a problem in case e.g. libclang is detected in one of the
      default linker search paths of the compiler in use (in my case compiler
      was Clang 6.0 from Ubuntu repositories trying to link against libclang.so from Clang 5.0)
      and CMake attempts to link using -lclang instead of the full library path,
      thus running into issues like:
        /usr/bin/ld: error: cannot find -lclang
        .../kdevelop/plugins/clang/tests/minimal_visitor.cpp:27: error: undefined reference to 'clang_getCursorExtent'
        ...
      46126881
  2. 04 Aug, 2017 2 commits
  3. 01 Aug, 2016 1 commit
  4. 25 Jul, 2016 1 commit
  5. 13 Jul, 2016 1 commit
  6. 05 Jan, 2016 1 commit
  7. 22 Dec, 2015 1 commit
    • Kevin Funk's avatar
      CMake: Modernize Clang/LLVM find scripts · 49391d8a
      Kevin Funk authored
      Changes:
      - LLVM_INCLUDE_DIR -> LLVM_INCLUDE_DIRS
      - LLVM_LIBRARY_DIR -> LLVM_LIBRARY_DIRS
      - CLANG_INCLUDE_DIR -> CLANG_INCLUDE_DIRS
      - CLANG_LIBRARY_DIR -> CLANG_LIBRARY_DIRS
      - Introduce LLVM_INSTALL_PREFIX
      - Fix compilation with self-built non-installed LLVM/Clang
      49391d8a
  8. 07 Dec, 2015 1 commit
  9. 01 Dec, 2015 1 commit
    • Kevin Funk's avatar
      FindClang.cmake: Introduce CLANG_LIBCLANG_LIB · 3d08e545
      Kevin Funk authored
      Changes:
      - s/CLANG_CLANG_LIB/CLANG_LIBCLANG_LIB/
      - Handle it separately, it's a C lib after all
      - Don't add libclang to CLANG_LIBS
      - Search for libclang.dll on Windows -> fixes Windows support
      3d08e545
  10. 28 Oct, 2015 1 commit
  11. 10 Oct, 2015 1 commit