Skip to content

Allow to specify build recipe in separate files based on versions.

Grigorii Latyshev requested to merge glatyshe/lcgcmake:ebuild-like_system into master

This changes allow to put build recipes to the separate files based on version (!) of package.

For example: LCGPackage_Add(pythia8 ...) handles all versions of pythia8 which leads to a lot of IF...ENDIF statements in the body of build recipe. Now you can create file .../pythia8-215.cmake with build recipe just for this version of pythia8. I think it is very useful. Mainly this is lcgcmake implementation of idea of 'ebuild'-files from Gentoo Portage package manager.

If all versions of package are in separated files you also need to have LCGPackage_Add in the CMakeLists.txt because you have to specify order of packages.

For example, we can use this patch for Herwig3 package (to mask it as usual Herwig++ version)

Merge request reports