File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ set(CMAKE_BUILD_TYPE Debug)
66set (CMAKE_CXX_STANDARD 14)
77
88find_package (LLVM 3.9 REQUIRED CONFIG)
9- find_package (Clang REQUIRED CONFIG)
109
1110find_package (PythonLibs 2.7)
1211
@@ -75,7 +74,9 @@ target_compile_options(fcd PRIVATE -Wall -Werror=conversion -Wno-error=sign-conv
7574target_compile_options (fcd PRIVATE -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections)
7675
7776llvm_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
8081if (${PYTHONLIBS_FOUND} )
8182 set_source_files_properties (${pythonbindingsfile} PROPERTIES COMPILE_FLAGS -w)
You can’t perform that action at this time.
0 commit comments