-
Notifications
You must be signed in to change notification settings - Fork 65
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
24.04 always checking for include-what-you-use and cppcheck #50
Comments
I had a few emails from people who didn't want to use the options/flags I had used originally, and wanted to have more control via options within their own projects. Thus in 23.09, the tools.cmake items were reworked:
Quite simply, you should be able to add options and put the macro calls of To remake the exact behaviour from before for tools.cmake, you can change something like this: clang_tidy(...)
include_what_you_use(...)
cppcheck(...) to option(CLANG_TIDY "Turns on clang-tidy processing if it is found." OFF)
if(CLANG_TIDY)
clang_tidy(...)
endif()
option(IWYU "Turns on include-what-you-use processing if it is found." OFF)
if(IWYU)
include_what_you_use(...)
endif()
option(CPPCHECK "Turns on cppcheck processing if it is found." OFF)
if(CPPCHECK)
cppcheck(...)
endif() |
How to reproduce:
git clone https://github.com/TheLartians/ModernCppStarter
cd ModernCppStarter
change symbol
@
atcmake/tools.cmake:14
to#
cmake -S . -B ./build -DUSE_STATIC_ANALYZER=clang-tidy
should work just fine
change tag version in
cmake/tools.cmake:14
from23.04
to24.04
get a next error:
Please, tell what changed, or tell how ModernCppStarter should be reworked
The text was updated successfully, but these errors were encountered: