[CMake] [PATCH] Support multiple arguments in CC,CXX,FC values
Michael Wild
themiwi at gmail.com
Mon Mar 15 10:01:55 EDT 2010
On 15. Mar, 2010, at 14:59 , Brad King wrote:
> Michael Wild wrote:
>> On 15. Mar, 2010, at 14:37 , Brad King wrote:
>>> using the "PROGRAM/PROGRAM_ARGS" option of get_filename_component()
>>> which already accounts for spaces in the path. It uses an algorithm
>>> similar to what the Windows command prompt does. It works backwards
>>> from the end and tries using everything to the left of each space
>>> as a file name until something is found.
>>
>> Now, that's cool. Would be even better if this option was documented ;-)
>
> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:get_filename_component
>
> "If PROGRAM_ARGS is present with PROGRAM, then any command-line
> arguments present in the FileName string are split from the
> program name and stored in ArgVar. This is used to separate a
> program name from its arguments in a command line string."
>
> -Brad
*blush* Really embarrassing, never read past the first paragraph, somehow assumed that all signatures are covered by the first synopsis...
Michael
More information about the CMake
mailing list