diff --git a/_scripts/templates/Cpp/cmake/st.FindANTLR.cmake b/_scripts/templates/Cpp/cmake/st.FindANTLR.cmake index 90e6d13bce..b49f6fde5f 100644 --- a/_scripts/templates/Cpp/cmake/st.FindANTLR.cmake +++ b/_scripts/templates/Cpp/cmake/st.FindANTLR.cmake @@ -81,7 +81,7 @@ find_package(Java QUIET COMPONENTS Runtime) add_custom_command( OUTPUT ${ANTLR_${Name}_OUTPUTS} - COMMAND node node_modules/antlr-ng/dist/cli/runner.js + COMMAND node build/node_modules/antlr-ng/dist/cli/runner.js COMMAND antlr4.exe -v ${ANTLR4_TAG} diff --git a/_scripts/templates/Cpp/st.build.ps1 b/_scripts/templates/Cpp/st.build.ps1 index f6279bb097..93cb6af3ab 100644 --- a/_scripts/templates/Cpp/st.build.ps1 +++ b/_scripts/templates/Cpp/st.build.ps1 @@ -1,7 +1,7 @@ # Generated from trgen function rmrf([string]$Path) { try { - Remove-Item -Recurse -ErrorAction:Stop $Path + Remove-Item -Recurse -ErrorAction:Stop -force $Path } catch [System.Management.Automation.ItemNotFoundException] { # Ignore $Error.Clear()