Bug 342952 - CMake Warnings with cmake 3.0.2
Summary: CMake Warnings with cmake 3.0.2
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: Compiled Sources Linux
: VLO minor
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-17 10:17 UTC by Ian Neal
Modified: 2017-07-01 12:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Neal 2015-01-17 10:17:01 UTC
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.
Comment 1 Christian David 2015-01-17 12:36:11 UTC
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.
Comment 2 Christian David 2015-02-19 08:32:44 UTC
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
Comment 3 Christian David 2015-02-19 08:32:45 UTC
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