mirror of https://github.com/aminya/setup-cpp
fix: fix cppcheck path on windows
This commit is contained in:
parent
1c9ab5ba6f
commit
3284f1f1f9
|
@ -8,8 +8,9 @@ export async function setupCppcheck(version: string | undefined, _setupCppDir: s
|
|||
switch (process.platform) {
|
||||
case "win32": {
|
||||
await setupChocoPack("cppcheck", version)
|
||||
addPath("C:\\Program Files\\Cppcheck")
|
||||
return undefined
|
||||
const binDir = "C:\\Program Files\\Cppcheck"
|
||||
addPath(binDir)
|
||||
return { binDir }
|
||||
}
|
||||
case "darwin": {
|
||||
return setupBrewPack("cppcheck", version)
|
||||
|
|
Loading…
Reference in New Issue