[CMake] How to prevent CMake from escaping characters in custom target
Tron Thomas
tron.thomas at verizon.net
Mon Mar 30 14:30:38 EDT 2009
I am trying to define an operation in a custom targt that varies on
different platforms and take different command line arguments. I
tried defining the command using something like:
set(Command "command_name -flags")
Then using it like:
set_custom_target(TargetName ${SomeOtherCommand} COMMAND ${Command})
This resulting script that handles target will format the command like
this:
command-name\ -flags
This causes an error when the command for the target are exectuted
preventing the command from doing what it was intended to do.
What can be done to allow the command to be formatted properly in the
target script?
More information about the CMake
mailing list