Hi,
I wonder whether you've considered using OS activation as the default rather than requiring that someone pass in the -P<profile> command?
Instead of the current profile definitions in the pom, you'd have:
<profile>
<id>linux</id>
<activation>
<os>
<name>Linux</name>
</os>
</activation>
<properties>
<cmake.classifier>linux</cmake.classifier>
</properties>
</profile>
You could still override it on the command line with: -Pwindows,-linux if you were on Linux but had a cross-compiling setup for building Windows binaries.
Thanks,
Kevin