diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/buildtools/FindCppcheck.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/buildtools/FindCppcheck.cmake b/cmake/modules/buildtools/FindCppcheck.cmake index d3b6e84e4b..27e2675291 100644 --- a/cmake/modules/buildtools/FindCppcheck.cmake +++ b/cmake/modules/buildtools/FindCppcheck.cmake @@ -21,7 +21,7 @@ if(CPPCHECK_FOUND) # but cppcheck doesn't support Objective-C and Objective-C++. # CMake >= 3.16 added support for Objective-C and Objective-C++ language, # but doesn't support OBJC and OBJCXX for <LANG>_CLANG_TIDY. - file(WRITE "${CMAKE_BINARY_DIR}/cppcheck" "case \"$@\" in *.m|*.mm) exit 0; esac\nexec \"${CPPCHECK_EXECUTABLE}\" --quiet --relative-paths=\"${CMAKE_SOURCE_DIR}\" \"$@\"\n") + file(WRITE "${CMAKE_BINARY_DIR}/cppcheck" "case \"$@\" in *.m|*.mm) exit 0; esac\nexec \"${CPPCHECK_EXECUTABLE}\" --enable=performance --quiet --relative-paths=\"${CMAKE_SOURCE_DIR}\" \"$@\"\n") execute_process(COMMAND chmod +x "${CMAKE_BINARY_DIR}/cppcheck") # Supports Unix Makefiles and Ninja |