When running cmake against latest git master a number of CMake Warnings are generated. Reproducible: Always Steps to Reproduce: 1. Use cmake 3.0.2 2. Run cmake against git master Actual Results: Get the following warnings: CMake Warning at CMakeLists.txt:171 (find_package): By not providing "FindGWENHYWFAR.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "GWENHYWFAR", but CMake did not find one. Could not find a package configuration file provided by "GWENHYWFAR" with any of the following names: GWENHYWFARConfig.cmake gwenhywfar-config.cmake Add the installation prefix of "GWENHYWFAR" to CMAKE_PREFIX_PATH or set "GWENHYWFAR_DIR" to a directory containing one of the above files. If "GWENHYWFAR" provides a separate development package or SDK, be sure it has been installed. -- Gwenhywfar found at () CMake Warning at CMakeLists.txt:173 (find_package): By not providing "FindAQBANKING.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "AQBANKING", but CMake did not find one. Could not find a package configuration file provided by "AQBANKING" (requested version 5.3.3) with any of the following names: AQBANKINGConfig.cmake aqbanking-config.cmake Add the installation prefix of "AQBANKING" to CMAKE_PREFIX_PATH or set "AQBANKING_DIR" to a directory containing one of the above files. If "AQBANKING" provides a separate development package or SDK, be sure it has been installed. -- AqBanking found at () CMake Warning (dev) at kmymoney/dialogs/CMakeLists.txt:92 (target_link_libraries): Policy CMP0023 is not set: Plain and keyword target_link_libraries signatures cannot be mixed. Run "cmake --help-policy CMP0023" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The plain signature for target_link_libraries has already been used with the target "dialogs". All uses of target_link_libraries with a target should be either all-keyword or all-plain. The uses of the plain signature are here: * kmymoney/dialogs/CMakeLists.txt:85 (target_link_libraries) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in kmymoney/payeeidentifier/nationalaccount/CMakeLists.txt: Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link interface. Run "cmake --help-policy CMP0022" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "payeeidentifier_nationalAccount" has an INTERFACE_LINK_LIBRARIES property which differs from its LINK_INTERFACE_LIBRARIES properties. INTERFACE_LINK_LIBRARIES: kmm_payeeidentifier;Qt4::QtCore;-lpthread;Qt4::QtXml LINK_INTERFACE_LIBRARIES: This warning is for project developers. Use -Wno-dev to suppress it. Expected Results: No warning messages Just upgraded to Fedora 21 which has cmake 3.0.2, from Fedora 19 which has cmake 2.8.12 Seems to build and run okay though.
The warnings for "GWENHYWFAR" and "AQBANKING" are issued because you do not have them installed. But they are only needed for the KBanking plugin. So there is a high chance you won't use it anyway. These messages are okay and will only disappear if you install both or deactivate building of KBanking (e.g. cmake .. -DENABLE_KBANKING=off). The other warnings are not as important as other tasks. Will be fixed later.
Git commit 2a45a76e14a81d8e673863711d496954c6d63b29 by Christian Dávid. Committed on 19/02/2015 at 08:17. Pushed by christiand into branch 'master'. Fixed a CMake warning regarding policy CMP0023 Settings for target_link_library() of target dialogs were not totaly correct. All linked libraries are exposed in the interfaces, so they should be linked public. Tested with cmake version 3.0.2. But it should be backwards compatible. M +4 -6 kmymoney/dialogs/CMakeLists.txt http://commits.kde.org/kmymoney/2a45a76e14a81d8e673863711d496954c6d63b29
Git commit 5ada2c7f075b98198234c42d35fae751eba483a6 by Christian Dávid. Committed on 19/02/2015 at 08:22. Pushed by christiand into branch 'master'. Fixed a CMake warning regarding policy CMP0022 This has to be changed in frameworks branch anyway. Tested with cmake version 3.0.2. But it should be backwards compatible. FIXED-IN: 4.8 M +1 -2 kmymoney/payeeidentifier/nationalaccount/CMakeLists.txt http://commits.kde.org/kmymoney/5ada2c7f075b98198234c42d35fae751eba483a6