[cmake-developers] Adding MacroWriteBasicCMakeVersionFile.cmake file to cmake ?

Brad King brad.king at kitware.com
Wed Jul 6 22:19:04 EDT 2011


On 7/6/2011 4:00 PM, Alexander Neundorf wrote:
> Since that Version.cmake file in most cases looks basically the same

They're only the same within a specific community's versioning scheme.
The whole reason find_package loads package-provided version check
files is to avoid imposing a versioning/compatibility scheme.  If
we provide a template then we should name it after the scheme it
follows.

Provide a module with macros to generate version files with different
common schemes.  Use configure_file with CMakeConfigurableFile.in as
the input if you don't want a custom .in file.

-Brad



More information about the cmake-developers mailing list