From 4e3b01acebc8594f0900ef978330a1bcce61c036 Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Fri, 13 Nov 2009 22:14:54 +0100 Subject: Fix for creating manifest in VS 2010 beta 2 --- src/main/java/org/apache/maven/plugin/nar/Linker.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/org/apache/maven/plugin/nar/Linker.java b/src/main/java/org/apache/maven/plugin/nar/Linker.java index 2bfc6aa..385bdf2 100644 --- a/src/main/java/org/apache/maven/plugin/nar/Linker.java +++ b/src/main/java/org/apache/maven/plugin/nar/Linker.java @@ -288,6 +288,15 @@ public class Linker linker.addConfiguredLinkerArg( arg ); } } + + // FIXME, this should be done in CPPTasks at some point, and may not be necessary, but was for VS 2010 beta 2 + if ( os.equals( OS.WINDOWS ) + && getName( null, null ).equals( "msvc" ) && !getVersion().startsWith( "6." ) ) { + LinkerArgument arg = new LinkerArgument(); + arg.setValue( "/MANIFEST" ); + linker.addConfiguredLinkerArg( arg ); + } + // Add options to linker if ( options != null ) -- cgit v1.2.3