Hi,

Is there any way to split a custom command on multiple lines (for readability), 
e.g:

   ADD_CUSTOM_COMMAND(
      OUTPUT .patched
      COMMAND for patch in ${ARGV}; do    \
                 echo "applying $patch;   \
                 patch -p1 < $patch       \
              done
      COMMAND touch .patched
      VERBATIM
   )


If not, is there any way to run a (cmake) function/macro, e.g:

   MACRO(mymacro)
      ...
   ENDMACRO()

   ADD_CUSTOM_COMMAND(
      OUTPUT .patched
      COMMAND mymacro()
      COMMAND touch .patched
      VERBATIM
   )

?

Regards,
Fabrice Aeschbacher
_______________________________________________
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