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

Brad King brad.king at kitware.com
Fri Dec 5 13:32:15 EST 2014


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