<div>After:</div>separate_arguments(options "space separated stuff here")<div><br></div><div>Did you try:</div><div>(1) OPTIONS ${options}</div><div>(2) OPTIONS "${options}"<br><br></div><div>Only (2) will work because the ctest_configure argument parsing takes only the one immediately following argument as the actual options to pass... And (1) expands into multiple arguments to ctest_configure.</div>
<div><br></div><div><br></div><div><br><div class="gmail_quote">On Wed, Jun 23, 2010 at 1:44 PM, Larry Procter <span dir="ltr"><<a href="mailto:larry@transpireinc.com">larry@transpireinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks for the help. Right after I emailed my message, I thought I would<br>
try just that and it worked like a champ. Another hard lesson learned.<br>
I wish this was clearly stated in the documentation. Also, I'm not sure<br>
why the "separate_arguments()" approach didn't work since it is supposed<br>
to return a semi-colon delimited list.<br>
<br>
<br>
Thanks again,<br>
<font color="#888888"><br>
Larry<br>
</font><div><div></div><div class="h5"><br>
On Wed, 2010-06-23 at 13:09 -0400, David Cole wrote:<br>
> Separate with semi-colons instead of spaces within the double<br>
> quotes...<br>
><br>
><br>
> Something like:<br>
> OPTIONS<br>
> "-DVENDOR_DIR=D:/vendors;-DCMAKE_INSTALL_PREFIX=d:/regress/unit/transpire/target;-DCMAKE_BUILD_TYPE=Release"<br>
><br>
> Or:<br>
> set(options<br>
> -DVENDOR_DIR=D:/vendors<br>
> -DCMAKE_INSTALL_PREFIX=d:/regress/unit/transpire/target<br>
> -DCMAKE_BUILD_TYPE=Release<br>
> )<br>
> ...<br>
> OPTIONS "${options}"<br>
><br>
><br>
> HTH,<br>
> David<br>
><br>
><br>
><br>
> On Wed, Jun 23, 2010 at 12:53 PM, Larry Procter<br>
> <<a href="mailto:larry@transpireinc.com">larry@transpireinc.com</a>> wrote:<br>
> Hello,<br>
><br>
> I have been struggling with successfully passing multipls<br>
> command line<br>
> options to the "ctest_configure()" command. The online<br>
> documentation<br>
> states:<br>
><br>
> The OPTIONS argument specifies command line arguments<br>
> to pass to<br>
> the configuration tool.<br>
><br>
> I am attempting the following:<br>
><br>
> ctest_configure(<br>
> BUILD ${CTEST_BINARY_DIRECTORY}<br>
> SOURCE ${CTEST_SOURCE_DIRECTORY}<br>
> OPTIONS "-DVENDOR_DIR=D:/vendors<br>
> -DCMAKE_INSTALL_PREFIX=d:/regress/unit/transpire/target<br>
> -DCMAKE_BUILD_TYPE=Release"<br>
> RETURN_VALUE config_result<br>
> )<br>
><br>
> PLEASE NOTE: The OPTIONS line is on a single line; my email<br>
> client has<br>
> introduced the line break.<br>
><br>
> This result in the following entry in the CMakeCache.txt file:<br>
><br>
> //No help, variable specified on the command line.<br>
><br>
> VENDOR_DIR=/vendors/i686-Windows-DCMAKE_INSTALL_PREFIX=/regress/unit/transpire/target -DCMAKE_BUILD_TYPE=Release<br>
><br>
> Also, the values for CMAKE_INSTALL_PREFIX and CMAKE_BUILD_TYPE<br>
> are set<br>
> to the default values, not the ones I specified.<br>
><br>
> It is obvious that the options I pass are not being<br>
> interpreted<br>
> correctly and that they are seen as a single string. I have<br>
> tried the<br>
> "separate_arguments()" command as well as escaping quotes<br>
> within the<br>
> OPTIONS string.<br>
><br>
> How may I pass multiple options?<br>
><br>
> Thank you,<br>
><br>
> Larry<br>
><br>
><br>
> _______________________________________________<br>
> Cdash mailing list<br>
> <a href="mailto:Cdash@public.kitware.com">Cdash@public.kitware.com</a><br>
> <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/cdash" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/cdash</a><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>