Ah, yes. That is what I needed: separate_arguments. Thanks, James
On Wed, Dec 5, 2012 at 6:11 AM, Brad King <[email protected]> wrote: > On 12/04/2012 07:31 PM, James Bigler wrote: > > Is this a bug or is what I'm trying to do impossible? > > In the code > > > set(mylist a b c) > > set(mystring "a b c") > > set(mylist_from_string ${mystring}) > > the ${mystring} is evaluated and arguments are divided only on ';' so it > results in a single argument. It is not whitespace-based like in shell > syntax. > > Look at the separate_arguments command to parse command lines on > whitespace and get CMake lists back. > > -Brad >
-- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
