summaryrefslogtreecommitdiff
path: root/bin/MakeProjectCreator/modules/NMakeWorkspaceCreator.pm
diff options
context:
space:
mode:
Diffstat (limited to 'bin/MakeProjectCreator/modules/NMakeWorkspaceCreator.pm')
-rw-r--r--bin/MakeProjectCreator/modules/NMakeWorkspaceCreator.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/MakeProjectCreator/modules/NMakeWorkspaceCreator.pm b/bin/MakeProjectCreator/modules/NMakeWorkspaceCreator.pm
index fea75097de3..8ba5b723e95 100644
--- a/bin/MakeProjectCreator/modules/NMakeWorkspaceCreator.pm
+++ b/bin/MakeProjectCreator/modules/NMakeWorkspaceCreator.pm
@@ -90,7 +90,12 @@ sub write_comps {
my(@list) = $self->sort_dependencies($projects, $pjs);
my($crlf) = $self->crlf();
- print $fh "ALL:$crlf";
+ print $fh '!IF "$(CFG)" == ""' . $crlf .
+ 'CFG=Win32 Debug' . $crlf .
+ '!MESSAGE No configuration specified. ' .
+ 'Defaulting to Win32 Debug.' . $crlf .
+ '!ENDIF' . $crlf . $crlf .
+ 'ALL:' . $crlf;
$self->write_project_targets($fh, 'CFG="$(CFG)"', \@list);
print $fh "$crlf" .