[CMake] Disable generation of backslashes?

alaterale at elitemail.org alaterale at elitemail.org
Mon Aug 15 15:19:42 EDT 2005


Hi,
I was wondering if there was an option to disable generation of
backslashes in makefiles.  While most programs I put into custom
commands can take a "\ " instead of a real space, some of the programs
I'm using at work were designed rather poorly (like compilers for rather
obtuse systems--which btw I can't use cmake's natural rule system for
because the compiler's only function is to generate assembly code which
is then assembled).

So, something like gcc \ -S\ -miram-vrm\ -gstabs\ .... gets generated,
where the non backslash version is the only one that works.

In case you're wondering I'm creating a macro library for the various
build systems that we use here, and I'd rather not have to specify the
number of flags in the macro header that are being passed in (and I
don't know how useful the ARGV thing is in this case... tried thinking
of a generic way to use it but it's not parseable like an array is
(ARGV[somenumber] to ARGV[ARGN]), which would be necessary because of
other parameters passed in before the flags).

I tried using string regexes to extract out the backslashes, but it
produces backslashes too.

Any way to disable (just temporarily) the backslashes?

Thanks,
J

P.S. Sorry if this is a stupid question, just been banging my head over
it the last few days and I'm probably missing something obvious :P


More information about the CMake mailing list