[CMake] User generated header file

John Drescher drescherjm at gmail.com
Mon Sep 19 09:13:25 EDT 2011


>>> Do you want the user to manually add the header, or do you want cmake
>>> to create it?
>>>
>>
>> User will manually add it before compile, so Eric mentioned setting
>> the GENERATED property to true, it works.
>
> The fact is it works the way you want, which is good, but beside that
> why would it be better for the user to face a failing build (because
> he forgot to create the file)
> than
> face a failing CMake run (because he forgot to create the file)?
>

My question is can't you have CMake generate the header for the user
instead of them supplying a file? Is it just defines in this header?

John


More information about the CMake mailing list