1. 07 Oct, 2018 1 commit
    • Bernd Buschinski's avatar
      Fix discovery of clang builtin directory with clang svn versions · 6da2caac
      Bernd Buschinski authored
      Summary:
      The CLANG_VERSION for svn clang versions have a svn suffix "8.0.0svn" and all the libraries have a svn suffix.
      But not the in builtin include dir. It still points to
      "/usr/lib/clang/8.0.0/include/cpuid.h"
      without the suffix.
      
      Extend the PATH_SUFFIXES to also looks a version without svn suffix.
      
      BUG: 399439
      
      Test Plan:
      - install clang-svn
      - execute cmake .. (for kdevelop)
      -> it will fail
      
      Reviewers: #kdevelop, kfunk
      
      Reviewed By: #kdevelop, kfunk
      
      Subscribers: kdevelop-devel
      
      Tags: #kdevelop
      
      Differential Revision: https://phabricator.kde.org/D15998
      6da2caac
  2. 04 Oct, 2018 1 commit
    • Bernd Buschinski's avatar
      Use CLANG_INCLUDE_DIRS for clang include dir · 716372ae
      Bernd Buschinski authored
      Summary:
      Use CLANG_INCLUDE_DIRS for clang include dir instead of manually building it.
      
      This fixes the error:
      kdevplatform.shell: Could not load plugin "kdevclangsupport" , it reported the error: "The clang builtin include path \"/usr/lib64/llvm/7/lib64/clang/7.0.0/include\" is invalid (missing cpuid.h header).\nTry setting the KDEV_CLANG_BUILTIN_DIR environment variable manually to fix this.\nSee also: https://bugs.kde.org/show_bug.cgi?id=393779" Disabling the plugin now.
      
      As CMake with CLANG_INCLUDE_DIRS already tests if this folder is present, it should work across all distros.
      
      CCBUG: 393779
      
      Reviewers: #kdevelop, kfunk
      
      Reviewed By: #kdevelop, kfunk
      
      Subscribers: mwolff, aaronpuchert, brauch, kossebau, kfunk, arrowd, kdevelop-devel
      
      Tags: #kdevelop
      
      Differential Revision: https://phabricator.kde.org/D15895
      716372ae
  3. 01 Oct, 2018 1 commit
    • Kevin Funk's avatar
      cmake: Detect Clang 7 and 8 · 4dba8251
      Kevin Funk authored
      Note: Looks like like recent versions of llvm-config no longer have a minor
      version suffix. Examples:
      - llvm-config-8
      - llvm-config-7
      - llvm-config-6.0
      - ...
      4dba8251
  4. 08 May, 2018 4 commits
  5. 18 Apr, 2018 1 commit
  6. 04 Aug, 2017 2 commits
  7. 01 Aug, 2016 1 commit
  8. 25 Jul, 2016 1 commit
  9. 13 Jul, 2016 1 commit
  10. 05 Jan, 2016 1 commit
  11. 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
  12. 07 Dec, 2015 1 commit
  13. 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
  14. 28 Oct, 2015 1 commit
  15. 10 Oct, 2015 1 commit