[cmake-developers] why does the order of the options in file(GENERATE) matter?

Erik Sjölund erik.sjolund at gmail.com
Fri Dec 5 15:11:36 EST 2014


I see, thanks.
cheers,
Erik Sjölund

On Fri, Dec 5, 2014 at 7:32 PM, Brad King <brad.king at kitware.com> wrote:
> On 12/05/2014 04:28 AM, Erik Sjölund wrote:
>> The CMake documentation doesn't mention that the order matters:
>> http://www.cmake.org/cmake/help/v3.1/command/file.html#command:file
>>
>> Why does the order of the options in file(GENERATE) matter?
>
> It was always implemented that way:
>
>  http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmFileCommand.cxx;hb=v3.1.0-rc2#l3421
>
> but the order was dropped from the documentation by accident during
> reformatting.  I've fixed the documentation:
>
>  Help: Document file(GENERATE) signature option order
>  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fe21580b
>
> -Brad
>


More information about the cmake-developers mailing list