File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,23 +21,23 @@ option(CPPCHECK "Turns on cppcheck processing if it is found." OFF)
2121# as the options set.
2222macro (clang_tidy )
2323 if (CLANG_TIDY AND CLANG_TIDY_EXE)
24- set (CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_EXE} ${ARGN} )
24+ set (CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_EXE} ${ARGN} CACHE STRING "" FORCE )
2525 endif ()
2626endmacro ()
2727
2828# Adds include_what_you_use to the compilation, with the given arguments being
2929# used as the options set.
3030macro (include_what_you_use )
3131 if (IWYU AND IWYU_EXE)
32- set (CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${IWYU_EXE} ${ARGN} )
32+ set (CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${IWYU_EXE} ${ARGN} CACHE STRING "" FORCE )
3333 endif ()
3434endmacro ()
3535
3636# Adds cppcheck to the compilation, with the given arguments being used as the
3737# options set.
3838macro (cppcheck )
3939 if (CPPCHECK AND CPPCHECK_EXE)
40- set (CMAKE_CXX_CPPCHECK ${CPPCHECK_EXE} ${ARGN} )
40+ set (CMAKE_CXX_CPPCHECK ${CPPCHECK_EXE} ${ARGN} CACHE STRING "" FORCE )
4141 endif ()
4242endmacro ()
4343
You can’t perform that action at this time.
0 commit comments