winemaker: Respect more spaces when splitting the options.

This commit is contained in:
André Hentschel 2011-11-19 19:41:38 +01:00 committed by Alexandre Julliard
parent 65cfa70e2f
commit b40c5f2d2c
1 changed files with 2 additions and 2 deletions

View File

@ -604,7 +604,7 @@ sub source_scan_project_file($$$)
next;
} elsif (/^# ADD CPP(.*)/ && $found_cfg==1) {
$prj_target_cflags=$1;
@prj_target_options=split(" /", $prj_target_cflags);
@prj_target_options=split(/\s+\//, $prj_target_cflags);
$prj_target_cflags="";
foreach ( @prj_target_options ) {
if ($_ eq "") {
@ -736,7 +736,7 @@ sub source_scan_project_file($$$)
next;
} elsif (/^# ADD LINK32(.*)/ && $found_cfg==1) {
$prj_target_ldflags=$1;
@prj_target_options=split(" /", $prj_target_ldflags);
@prj_target_options=split(/\s+\//, $prj_target_ldflags);
$prj_target_ldflags="";
$prj_target_libs=$prj_target_options[0];
$prj_target_libs=~s/\\/\//g;