At 10:40 PM 8/14/2006, Igor Peshansky wrote:
- The other option is to use mingw-make, and only use cygwin make
for cygwin linked programs only.
Incorrect. If you use Cygwin make, it's very easy to invoke Windows
programs by converting their arguments with "cygpath -w" (or, barring
that, with a perl or sed script). I've done that, others have done that.
If you are generating the code to invoke the Microsoft cl compiler, simply
use something like $(foreach f,$^,$(shell cygpath -w $f)) as the argument
to cl.
I have to say yuck!, and performance hit. So, for every path that gets
passed to the compiler you have to launch a process that does string allocation
and conversion. I do not think this is a realistic solution for larger
projects. I would not want CMake to generate makefiles with cygpath -w
being invoked multiple times per compiler run. So, I will restate that
there is no workable solution to use cl with cygwin make anymore.