Add path for finding ubuntu's libclang

This commit is contained in:
Jack Andersen
2019-11-19 05:03:11 +00:00
parent c29e383570
commit eba4f30781
+2 -2
View File
@@ -32,9 +32,9 @@ function(add_codegen_targets
get_filename_component(CLANG_BIN_DIR "${CLANG_BIN_PATH}" DIRECTORY)
find_library(CLANG_LIBRARY NAMES clang libclang HINTS "${CLANG_BIN_DIR}/../lib" REQUIRED)
else()
find_library(CLANG_LIBRARY NAMES clang libclang REQUIRED)
find_library(CLANG_LIBRARY NAMES clang libclang PATHS /usr/lib/llvm-6.0/lib REQUIRED)
endif()
if ("${CLANG_LIBRARY}" STREQUAL "CLANG_LIBRARY-NOTFOUND")
if (NOT CLANG_LIBRARY)
message(SEND_ERROR "libclang not found")
set(missing_requirements TRUE)
endif()