Skip to content

Commit ea5c07c

Browse files
committed
Ubuntu does not package ClangConfig
1 parent 9261a88 commit ea5c07c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ set(CMAKE_BUILD_TYPE Debug)
66
set(CMAKE_CXX_STANDARD 14)
77

88
find_package(LLVM 3.9 REQUIRED CONFIG)
9-
find_package(Clang REQUIRED CONFIG)
109

1110
find_package(PythonLibs 2.7)
1211

@@ -75,7 +74,9 @@ target_compile_options(fcd PRIVATE -Wall -Werror=conversion -Wno-error=sign-conv
7574
target_compile_options(fcd PRIVATE -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections)
7675

7776
llvm_map_components_to_libnames(llvm_libs core analysis instcombine ipo irreader scalaropts transformutils vectorize support)
78-
target_link_libraries(fcd ${llvm_libs} clangIndex clangCodeGen libclang capstone -Wl,--gc-sections)
77+
target_link_libraries(fcd ${llvm_libs} capstone -Wl,--gc-sections)
78+
# Ubuntu does not package ClangConfig
79+
target_link_libraries(fcd "-L${LLVM_LIBRARY_DIR}" -lclang clangIndex clangCodeGen clangFormat clangToolingCore clangRewrite clangFrontend clangDriver clangParse clangSerialization clangSema clangEdit clangAnalysis clangAST clangLex clangBasic LLVMCoverage LLVMCore LLVMOption)
7980

8081
if (${PYTHONLIBS_FOUND})
8182
set_source_files_properties(${pythonbindingsfile} PROPERTIES COMPILE_FLAGS -w)

0 commit comments

Comments
 (0)