Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:ARM
clazy
cmake-clang-cpp.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cmake-clang-cpp.patch of Package clazy
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e60d1f..74282fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,12 +82,6 @@ include_directories(${CMAKE_BINARY_DIR}) include_directories(${CLANG_INCLUDE_DIRS} ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}/src) link_directories("${LLVM_INSTALL_PREFIX}/lib" ${LLVM_LIBRARY_DIRS}) -if (${LLVM_VERSION} VERSION_GREATER_EQUAL "9.0.0") - set(clang_tooling_refactoring_lib clangToolingRefactoring) -else() - set(clang_tooling_refactoring_lib clangToolingRefactor) -endif() - macro(link_to_llvm name is_standalone) foreach(clang_lib ${CLANG_LIBS}) if(MSVC) @@ -125,9 +119,13 @@ macro(link_to_llvm name is_standalone) if(WIN32) target_link_libraries(${name} version.lib) endif() + if (${LLVM_VERSION} VERSION_LESS "9.0.0") target_link_libraries(${name} clangTooling) target_link_libraries(${name} clangToolingCore) - target_link_libraries(${name} ${clang_tooling_refactoring_lib}) + target_link_libraries(${name} clangToolingRefactor) + else() + target_link_libraries(${name} clang-cpp) + endif() endmacro() macro(add_clang_plugin name) diff --git a/cmake/FindClang.cmake b/cmake/FindClang.cmake index 542172e..50e0829 100644 --- a/cmake/FindClang.cmake +++ b/cmake/FindClang.cmake @@ -62,6 +62,7 @@ if (LLVM_FOUND AND LLVM_LIBRARY_DIRS) # note: On Windows there's 'libclang.dll' instead of 'clang.dll' -> search for 'libclang', too find_library(CLANG_LIBCLANG_LIB NAMES clang libclang HINTS ${LLVM_LIBRARY_DIRS}) # LibClang: high-level C interface + FIND_AND_ADD_CLANG_LIB(clang-cpp) FIND_AND_ADD_CLANG_LIB(clangFrontend) FIND_AND_ADD_CLANG_LIB(clangDriver) FIND_AND_ADD_CLANG_LIB(clangCodeGen)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor