David Cole wrote:
> Two "rules":
> 
> - Project config files can only go *with* the project.
>      (VTK and ITK have them. Qt 5 has one. KDE uses them... All the cool
> projects have one. :-)

There is an additional note for this rule:

 - If a Config file is created, it must be created independent of the 
buildsystem used by the project.

pcre can be built with autotools or with cmake. There is little point in 
adding some install(EXPORT) lines to the CMakeLists.txt files because the 
config files would not be created when building pcre with autotools. In that 
case, some external script would have to be used to create the files.

llvm also creates cmake config files I think, but they also have an 
autotools buildsystem (which as far as I know does not create the config 
files). So, in that sense they're 'breaking the rule' because creating a 
useful package depends on building them with cmake anyway.

Thanks,

Steve.


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to