Re: [CMake] Issues with execute_process and svn

2011-07-14 Thread David Cole
-Original Message- From: David Cole [mailto:david.c...@kitware.com] Sent: Wednesday, July 13, 2011 4:09 PM To: Meadows, Aaron C. Cc: cmake@cmake.org Subject: Re: [CMake] Issues with execute_process and svn It boils down to this: set(args --username MyUserName) # sets args to a list

[CMake] Issues with execute_process and svn

2011-07-13 Thread aaron . meadows
Hi all, I've been having a devil of a time with executing SVN with execute_process. Basically, I need to read environment variables to specify the username and password for builds on our build server (where we do not cache credentials). I've made several attempts at this, and have been

Re: [CMake] Issues with execute_process and svn

2011-07-13 Thread David Cole
Take the double quotes off the set commands for your args variables. And put spaces in between the dereferences of those vars in the execute_process command. Like this: # No double quotes here: if(NOT $ENV{CMAKE_SVN_USERNAME} STREQUAL ) set(_SvnCredPart --no-auth-cache) set(_SvnUserPart

Re: [CMake] Issues with execute_process and svn

2011-07-13 Thread Jean-Christophe Fillion-Robin
Hi Aaron, Not sure if ti will help, but Have you looked at using ExternalProject.cmake to checkout, configure and build project using CMake ? Hth Jc On Wed, Jul 13, 2011 at 2:05 PM, David Cole david.c...@kitware.com wrote: Take the double quotes off the set commands for your args

Re: [CMake] Issues with execute_process and svn

2011-07-13 Thread aaron . meadows
That's not what I'm using it for, but thanks for the suggestion. Aaron Meadows From: Jean-Christophe Fillion-Robin [mailto:jchris.filli...@kitware.com] Sent: Wednesday, July 13, 2011 1:49 PM To: David Cole Cc: Meadows, Aaron C.; cmake@cmake.org Subject: Re: [CMake] Issues

Re: [CMake] Issues with execute_process and svn

2011-07-13 Thread aaron . meadows
That works! Thanks! Any idea why the other way was causing issues? Aaron Meadows -Original Message- From: David Cole [mailto:david.c...@kitware.com] Sent: Wednesday, July 13, 2011 1:06 PM To: Meadows, Aaron C. Cc: cmake@cmake.org Subject: Re: [CMake] Issues with execute_process

Re: [CMake] Issues with execute_process and svn

2011-07-13 Thread David Cole
-Original Message- From: David Cole [mailto:david.c...@kitware.com] Sent: Wednesday, July 13, 2011 1:06 PM To: Meadows, Aaron C. Cc: cmake@cmake.org Subject: Re: [CMake] Issues with execute_process and svn Take the double quotes off the set commands for your args variables. And put

Re: [CMake] Issues with execute_process and svn

2011-07-13 Thread aaron . meadows
issues? Aaron Meadows -Original Message- From: David Cole [mailto:david.c...@kitware.com] Sent: Wednesday, July 13, 2011 1:06 PM To: Meadows, Aaron C. Cc: cmake@cmake.org Subject: Re: [CMake] Issues with execute_process and svn Take the double quotes off the set commands for your