Skrooge has no FindGrantlee.cmake responsible for checking if Grantlee actually exists before it is used in plugins/skrooge/skrooge_monthly/grantlee_filters/CMakeLists.txt. It would be a good practice if Skrooge looked for Grantlee and warned when it is not installed.
Hi, As you can see there: https://projects.kde.org/projects/extragear/office/skrooge/repository/revisions/master/entry/plugins/skrooge/skrooge_monthly/CMakeLists.txt The FIND_PACKAGE for Grantlee is already present. ( Line 5: FIND_PACKAGE(Grantlee REQUIRED) ) What do you need more?
If I try to build Skrooge 1.0.0 when Grantlee is not installed, I get the following messages: -- ..:: CMAKE PLUGIN_MONTHLY ::.. CMake Error at plugins/skrooge/skrooge_monthly/CMakeLists.txt:5 (FIND_PACKAGE): Could not find module FindGrantlee.cmake or a configuration file for package Grantlee. Adjust CMAKE_MODULE_PATH to find FindGrantlee.cmake or set Grantlee_DIR to the directory containing a CMake configuration file for Grantlee. The file will have one of the following names: GrantleeConfig.cmake grantlee-config.cmake -- GRANTLEE VERSION : .. -- enable GRANTLEE 0.1.4 API -- ..:: CMAKE GRANTLEE_FILTERS ::.. CMake Error at plugins/skrooge/skrooge_monthly/grantlee_filters/CMakeLists.txt:5 (INCLUDE): include called with wrong number of arguments. Include only takes one file. CMake Error at plugins/skrooge/skrooge_monthly/grantlee_filters/CMakeLists.txt:11 (GRANTLEE_ADD_PLUGIN): Unknown CMake command "GRANTLEE_ADD_PLUGIN". -- Configuring incomplete, errors occurred!
Git commit 948e58b007983c0cb6de963b614ff6cd6e652ced by Stephane Mankowski. Committed on 23/10/2011 at 19:02. Pushed by smankowski into branch 'Feature'. BUG: 284752: Skrooge does not look for Grantlee at build time M +1 -0 CHANGELOG M +0 -3 CMakeLists.txt M +7 -1 plugins/skrooge/skrooge_monthly/CMakeLists.txt M +6 -1 skgbasemodeler/CMakeLists.txt M +1 -0 tests/CMakeLists.txt http://commits.kde.org/skrooge/948e58b007983c0cb6de963b614ff6cd6e652ced
Note that you can also use macro_optional_find_package+macro_log_feature instead of find_package+manually specifying error messages.