Re: [CMake] Problem with ADD_CUSTOM_COMMAND & ARGS

2009-09-18 Thread Eric Tellefsen
Tyler, Shortly after postiing this followup I was able to resolve my problem via VERBATIM and some 'creative quoting' Thanks for your help, Eric Tyler Roscoe wrote on 09/17/2009 01:11:43 PM: > On Thu, Sep 17, 2009 at 08:24:28AM -0400, Eric Tellefsen wrote: > > On the plus side, the passed ar

Re: [CMake] Problem with ADD_CUSTOM_COMMAND & ARGS

2009-09-17 Thread Tyler Roscoe
On Thu, Sep 17, 2009 at 08:24:28AM -0400, Eric Tellefsen wrote: > On the plus side, the passed arg "#../../XML/Types/##" is now properly > quoted. On the minus side, the xsd command invocation fails outright, > because for some reason the directory name being passed in for the > location of the

Re: [CMake] Problem with ADD_CUSTOM_COMMAND & ARGS

2009-09-17 Thread Eric Tellefsen
Tyler, Thank you for the tips on VERBATIM & make VERBOSE=1. I added VERBOSE to my add_custom_command, but it seems that it fixed one problem and caused another. On the plus side, the passed arg "#../../XML/Types/##" is now properly quoted. On the minus side, the xsd command invocation fails

Re: [CMake] Problem with ADD_CUSTOM_COMMAND & ARGS

2009-09-16 Thread Alan W. Irwin
On 2009-09-16 16:27-0400 Eric Tellefsen wrote: My problem has to do with the ARGS section of the custom command. Specifically the 'legacy' Makefile uses an argument  --include-regex   "#../../XML/Types/##"  in order to remove this prefix from the generated HXX files, where applicable. While eve

Re: [CMake] Problem with ADD_CUSTOM_COMMAND & ARGS

2009-09-16 Thread Tyler Roscoe
On Wed, Sep 16, 2009 at 04:27:48PM -0400, Eric Tellefsen wrote: > Solaris make My condolences :p. > My problem has to do with the ARGS section of the custom command. > Specifically the 'legacy' Makefile uses an argument --include-regex > "#../../XML/Types/##" in order to remove this prefix f

[CMake] Problem with ADD_CUSTOM_COMMAND & ARGS

2009-09-16 Thread Eric Tellefsen
Hi, During one of my more complex migrations from Solaris make to CMake, I have run into a problem with an argument passed into the custom command. A key part of this project generates CXX & HXX source files from a series of .xsd files in project sub directories. In order to reuse this funct