[cmake-developers] Making Config.cmake files easier to write

Eric Noulard eric.noulard at gmail.com
Thu Feb 16 15:29:33 EST 2012


2012/2/14 Alexander Neundorf <neundorf at kde.org>:
> On Tuesday 14 February 2012, Brad King wrote:
>> On 2/14/2012 1:26 PM, Alexander Neundorf wrote:
>> > Well, CMakeConfigHelpers.cmake would be shipped with cmake, so as long as
>> > the Config.cmake file says
>> > cmake_minimum_required(VERSION 2.8.8)
>> > it would be fine.
>>
>> ...and we have to maintain compatibility in the module no matter what.
>> It is much easier if the config files are standalone.
>
> Yes, that's a good point.
> Another option would be to install the included file along the Config.cmake
> file.

Since you are wanting to generate the Config file may be you can simply
write whatever CMake macros/function you need in it directly.


More information about the cmake-developers mailing list