mirror of
https://github.com/AxioDL/CodeGen.git
synced 2026-07-11 06:18:36 -07:00
Add path for finding ubuntu's libclang
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user