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?

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to