File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -21,23 +21,29 @@ option(CPPCHECK "Turns on cppcheck processing if it is found." OFF)
21
21
# as the options set.
22
22
macro (clang_tidy)
23
23
if (CLANG_TIDY AND CLANG_TIDY_EXE)
24
- set (CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_EXE} ${ARGN} CACHE STRING "" FORCE)
24
+ set (CMAKE_CXX_CLANG_TIDY
25
+ ${CLANG_TIDY_EXE} ${ARGN}
26
+ CACHE STRING "" FORCE)
25
27
endif ()
26
28
endmacro ()
27
29
28
30
# Adds include_what_you_use to the compilation, with the given arguments being
29
31
# used as the options set.
30
32
macro (include_what_you_use)
31
33
if (IWYU AND IWYU_EXE)
32
- set (CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${IWYU_EXE} ${ARGN} CACHE STRING "" FORCE)
34
+ set (CMAKE_CXX_INCLUDE_WHAT_YOU_USE
35
+ ${IWYU_EXE} ${ARGN}
36
+ CACHE STRING "" FORCE)
33
37
endif ()
34
38
endmacro ()
35
39
36
40
# Adds cppcheck to the compilation, with the given arguments being used as the
37
41
# options set.
38
42
macro (cppcheck)
39
43
if (CPPCHECK AND CPPCHECK_EXE)
40
- set (CMAKE_CXX_CPPCHECK ${CPPCHECK_EXE} ${ARGN} CACHE STRING "" FORCE)
44
+ set (CMAKE_CXX_CPPCHECK
45
+ ${CPPCHECK_EXE} ${ARGN}
46
+ CACHE STRING "" FORCE)
41
47
endif ()
42
48
endmacro ()
43
49
You can’t perform that action at this time.
0 commit comments