cppcheck: copy it from @rpavlik (cmake-modules)