prepare.py: add force option hint

This commit is contained in:
Gautier Pelloux-Prayer 2015-12-22 11:21:28 +01:00
parent 79bcab6661
commit 5f72da9c93
2 changed files with 3 additions and 3 deletions

View file

@ -535,9 +535,9 @@ def main(argv=None):
if x not in selected_platforms:
selected_platforms.append(x)
if os.path.isdir('WORK') and not args.clean:
if os.path.isdir('WORK') and not args.clean and not args.force:
warning("Working directory WORK already exists. Please remove it (option -C or -c) before re-executing CMake "
"to avoid conflicts between executions.")
"to avoid conflicts between executions, or force execution (option -f) if you are aware of consequences.")
if os.path.isfile('Makefile'):
Popen("make help-prepare-options".split(" "))
return 0

@ -1 +1 @@
Subproject commit f45364d8a610f6cc36aba5a37ad15d9d42c41e31
Subproject commit b458a004e736f17e059741f067bc754adee3cb88