-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conan support #802
Comments
This was referenced Jun 5, 2020
@blockspacer Sounds cool. There's nothing we need to do from the upstream IWYU side, right? Feel free to package IWYU for conan. |
Usage example for cmake users: Install IWYU (ENABLE_LLVM_TOOLS=TRUE): cmake \
-DEXTRA_CONAN_OPTS=\
"--profile;clang\
;-s;build_type=Debug\
;-s;cling_conan:build_type=Release\
;-s;llvm_tools:build_type=Release\
;--build;missing" \
-DENABLE_LLVM_TOOLS=TRUE \
-DENABLE_CLING=TRUE \
-DENABLE_FLEXTOOL=TRUE \
-DENABLE_FLEX_REFLECT_PLUGIN=TRUE \
-DENABLE_SQUARETS=TRUE \
-DENABLE_FLEX_SQUARETS_PLUGIN=TRUE \
-DENABLE_FLEX_PIMPL_PLUGIN=TRUE \
-DENABLE_FLEX_TYPECLASS_PLUGIN=TRUE \
-DENABLE_FLEX_META_PLUGIN=TRUE \
-DENABLE_FLEX_META_DEMO=TRUE \
-P tools/buildConanThirdparty.cmake Run IWYU: # creates local build in separate folder and runs cmake targets
cmake -DIWYU="ON" -DCLEAN_OLD="ON" -P tools/run_tool.cmake |
I was stuck with and found that i can bundle required includes with conan package (llvm) Now i pass to IWYU:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proof-of-concept https://github.com/blockspacer/llvm_tools
(MIT license)
Goal: easy install
include-what-you-use
withconan install
command.After
conan install
you will be able to use cmakefind_program
like so:Note that conan supports not only cmake (for example, scons also can be used)
See for details about conan https://docs.conan.io/en/latest/getting_started.html
The text was updated successfully, but these errors were encountered: