Change your set command to set (FOO "one;two;three")

The ; notation without quotes is used for declaring lists of strings.
With quotes, FOO will be a single string instead.

Sam 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Eric (Brad) Lemings
Sent: Tuesday, October 21, 2008 2:01 PM
To: cmake@cmake.org
Subject: [CMake] Semicolons in command options

Why does CMake do this and how can I tell it to NOT replace semicolons
with spaces?

CMakeLists.txt:
    set (FOO one;two;three)
    add_custom_target (foo.exe ALL
        myCmd -I${FOO}
        VERBATIM)

CMake Output:
        myCmd -Ione two three

Thanks,
Eric.

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Big Fish Games, Inc. A New Game Every Day!

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to