Separate with semi-colons instead of spaces within the double quotes...<div><br></div><div>Something like:</div><div> OPTIONS "-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>
</div><div><br><div class="gmail_quote">On Wed, Jun 23, 2010 at 12:53 PM, Larry Procter <span dir="ltr"><<a href="mailto:larry@transpireinc.com" target="_blank">larry@transpireinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
<br>
I have been struggling with successfully passing multipls command line<br>
options to the "ctest_configure()" command. The online documentation<br>
states:<br>
<br>
The OPTIONS argument specifies command line arguments 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 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>
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 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 interpreted<br>
correctly and that they are seen as a single string. I have tried the<br>
"separate_arguments()" command as well as escaping quotes 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" target="_blank">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>
</blockquote></div><br></div>