Fix finding LibTooling when 'clang-cpp' target is used
See https://releases.llvm.org/9.0.0/tools/clang/docs/ReleaseNotes.html#build-system-changes
This commit is contained in:
parent
456702e009
commit
f75c8d77a2
|
@ -39,17 +39,22 @@ endif ()
|
||||||
# link against c++utilities
|
# link against c++utilities
|
||||||
use_cpp_utilities()
|
use_cpp_utilities()
|
||||||
|
|
||||||
# find Clang for LibTooling; adding clangTooling should be sufficient as it pulls all transitive dependencies
|
# find Clang for LibTooling
|
||||||
find_package(Clang REQUIRED)
|
find_package(Clang REQUIRED)
|
||||||
list(APPEND PRIVATE_LIBRARIES
|
if (TARGET clang-cpp)
|
||||||
clangTooling
|
list(APPEND PRIVATE_LIBRARIES clang-cpp LLVM)
|
||||||
clangFrontend
|
else ()
|
||||||
clangSerialization
|
list(
|
||||||
clangSema
|
APPEND PRIVATE_LIBRARIES
|
||||||
clangAST
|
clangTooling
|
||||||
clangLex
|
clangFrontend
|
||||||
clangBasic
|
clangSerialization
|
||||||
LLVM)
|
clangSema
|
||||||
|
clangAST
|
||||||
|
clangLex
|
||||||
|
clangBasic
|
||||||
|
LLVM)
|
||||||
|
endif ()
|
||||||
|
|
||||||
# also add reflective_rapidjson which is header-only but might pull additional include dirs for RapidJSON
|
# also add reflective_rapidjson which is header-only but might pull additional include dirs for RapidJSON
|
||||||
list(APPEND PRIVATE_LIBRARIES reflective_rapidjson)
|
list(APPEND PRIVATE_LIBRARIES reflective_rapidjson)
|
||||||
|
|
Loading…
Reference in New Issue