cmopts_target_disable_analysis#
Disable requested analysis for a given target.
cmopts_target_disable_analysis(<target> <tools...>)
Note
It is worth to mention that this method is implemented on aminya’s project_options CMake module side and cmopts package simply provides a convenience wrapper for following methods:
target_disable_static_analysis,target_disable_include_what_you_use,target_disable_vs_analysis.
Arguments#
The named <target> must have been created by a command such as add_executable or add_library and must not be an ALIAS target.
If ALL is passed as <tools>, all available analysis will be disabled for a given target.
If you want a more granular control over what analysis to be disabled, you can use one or more of the following options for <tools>:
IWYUDisable generation of coverage report for a given target.
IWYUDisable all include-what-you-use checks for a given target.
VSADisable all Visual Studio checks for a given target.
Examples#
Disable all available analysis for a specific target:
cmopts_test_disable_analysis(target1 ALL)
# equals to
cmopts_test_disable_analysis(target1
CLANG_TIDY
CPPCHECK
IWYU
VSA)