[Omake] Strings

Matthieu Dubuget matthieu.dubuget at gmail.com
Wed Oct 17 03:18:47 PDT 2007


Hi.

I'm trying to pass a simple quoted string to a command line, but fail miserably.

I would like this to be given to the command line :
\libpath:"..\lib"


OMakefile                                                 Command line
produced      Comments
-------------------------------------------------------------------------------------------------------------------------------------
LDFLAGS += AqDrv4.lib \libpath:"..\lib"      AqDrv4.lib
\libpath:..\\lib     quotes disappeared

                               \ was escaped

LDFLAGS += AqDrv4.lib \libpath:$'"..\lib"'   \libpath:'"..\\lib"'
            simple quotes still here

                               \ was escaped

LDFLAGS += AqDrv4.lib $(addsuffix $'"',$(addprefix \libpath:$'"',..\lib))

\libpath:\"..\lib\"                 quotes escaped

...

Is there any simple solution to my problem?

I'm using:

 OMake 0.9.8.5 (release 2):
        build [Fri Aug 10 16:10:42 2007]
        on jaoquin-nt

Default library directory : c:\Program Files\OMake\lib\omake
Using library directory   : C:\Program Files\OMake\lib\omake\
        (as specified by the
HKEY_LOCAL_MACHINE\SOFTWARE\MetaPRL\OMake\OMAKELIB registry key)

under cygwin

Best regards

Matthieu


More information about the Omake mailing list