Introduce keygen --no-overwrite to avoid prompt #636
Merged
+32
−15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a new
--no-overwriteoption to thetools/keytools/keygenapp.This can be handy during CMake builds, for instance like this:
Otherwise, at least on Windows, the resulting spawned app will quietly await a response as a hidden process, typically keeping files locked, unable to build again, forcing a reboot if task manager won't terminate the process.
Reminder the regular
if(EXIST ...is a configure-time check, not build-time. See docs.Although a custom command could be used in this cmake example, it will be handy for other automation processes outside of cmake to have the "yes, I know the keystore might already exist, so don't prompt, and don't overwrite it" option.