Browse Source

Added search for LLVM 4.0 on FreeBSD

merge-requests/365/head
eidheim 9 years ago
parent
commit
d35b1fcb5c
  1. 4
      cmake_modules/FindLibClang.cmake

4
cmake_modules/FindLibClang.cmake

@ -65,7 +65,7 @@ endforeach()
find_path(LIBCLANG_INCLUDE_DIR clang-c/Index.h find_path(LIBCLANG_INCLUDE_DIR clang-c/Index.h
PATHS ${libclang_llvm_header_search_paths} PATHS ${libclang_llvm_header_search_paths}
PATH_SUFFIXES LLVM/include #Windows package from http://llvm.org/releases/ PATH_SUFFIXES LLVM/include #Windows package from http://llvm.org/releases/
llvm39/include llvm38/include llvm37/include llvm36/include # FreeBSD llvm40/include llvm39/include llvm38/include llvm37/include llvm36/include # FreeBSD
DOC "The path to the directory that contains clang-c/Index.h") DOC "The path to the directory that contains clang-c/Index.h")
# On Windows with MSVC, the import library uses the ".imp" file extension # On Windows with MSVC, the import library uses the ".imp" file extension
@ -79,7 +79,7 @@ endif()
find_library(LIBCLANG_LIBRARY NAMES libclang.imp libclang clang find_library(LIBCLANG_LIBRARY NAMES libclang.imp libclang clang
PATHS ${libclang_llvm_lib_search_paths} PATHS ${libclang_llvm_lib_search_paths}
PATH_SUFFIXES LLVM/lib #Windows package from http://llvm.org/releases/ PATH_SUFFIXES LLVM/lib #Windows package from http://llvm.org/releases/
llvm39/lib llvm38/lib llvm37/lib llvm36/lib # FreeBSD llvm40/lib llvm39/lib llvm38/lib llvm37/lib llvm36/lib # FreeBSD
DOC "The file that corresponds to the libclang library.") DOC "The file that corresponds to the libclang library.")
get_filename_component(LIBCLANG_LIBRARY_DIR ${LIBCLANG_LIBRARY} PATH) get_filename_component(LIBCLANG_LIBRARY_DIR ${LIBCLANG_LIBRARY} PATH)

Loading…
Cancel
Save