Set the following properties in your project.properties
:
maven.native.include.os=win32 maven.native.compiler.arg.start=-mno-cygwin maven.native.linker.arg.start=-mno-cygwin -Wl,--add-stdcall-alias
Set the following properties in your project.properties
:
maven.native.include.os=win32 maven.native.compiler.name=msvc
Optionally, you can set the following property if you don't want the default argument /MD (or /MDd if in debug mode) to be passed to cl. At time of writing, this always gets set by CCTask so even if you pass a different argument with maven.native.compiler.arg.start property, it won't be unset. You will simply end up with 2 arguments...
maven.native.runtime=static
Other arguments for cl can be passed in by setting the following property (with values you *really* want, of course, this is just an example). Multiple values are separated by a space.
maven.native.compiler.arg.start=/GR /GX