diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2009-08-19 13:50:40 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2009-08-19 13:50:40 +0000 |
commit | cbec93d87c7a9f44f7df03f10e42e196c1c59227 (patch) | |
tree | 67fa34e144e117791a5a667bb461c83e580a87ec /modules/VC8WorkspaceCreator.pm | |
parent | 521ecaf0d7aebf13e7d42a71d5a86e9d94c60e43 (diff) | |
download | MPC-cbec93d87c7a9f44f7df03f10e42e196c1c59227.tar.gz |
ChangeLogTag: Wed Aug 19 13:49:34 UTC 2009 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/VC8WorkspaceCreator.pm')
-rw-r--r-- | modules/VC8WorkspaceCreator.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/VC8WorkspaceCreator.pm b/modules/VC8WorkspaceCreator.pm index 13a7bf26..60dfd7c7 100644 --- a/modules/VC8WorkspaceCreator.pm +++ b/modules/VC8WorkspaceCreator.pm @@ -57,10 +57,14 @@ sub post_workspace { my @projects = $self->sort_dependencies($self->get_projects(), 0); my %gmap; - ## Store a map of the project name to project guid + ## Store a map of the project name to project guid and whether or not + ## it is suitable to be referenced. Adding a reference to a + ## non-managed c++ library or a "utility" project causes a warning in + ## Visual Studio 2008 and higher. foreach my $project (@projects) { my($name, $deps, $guid, $lang, $custom_only, $nocross, $managed) = @{$$pjs{$project}}; - $gmap{$name} = [$guid, $managed || $lang ne Creator::cplusplus]; + $gmap{$name} = [$guid, !$custom_only && ($managed || + $lang ne Creator::cplusplus)]; } ## Now go through the projects and check for the need to add external |