Bug 269621 - Warnings from CMAKE 2.8.4
Summary: Warnings from CMAKE 2.8.4
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: SVN
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-28 17:15 UTC by David Houlden
Modified: 2011-05-08 11:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Houlden 2011-03-28 17:15:44 UTC
Version:           SVN trunk (using KDE 4.5.5) 
OS:                Linux

Slackware current recently upgraded to CMAKE 2.8.4 from 2.8.3 and warnings now appear when building kmymoney. Sample output below.

-- Found Qt-Version 4.7.0 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
CMake Warning (dev) at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:86 (INCLUDE):
  File /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake
  includes /usr/share/apps/cmake/modules/CMakeParseArguments.cmake (found via
  CMAKE_MODULE_PATH) which shadows
  /usr/share/cmake-2.8/Modules/CMakeParseArguments.cmake.  This may cause
  errors later on .

  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindThreads.cmake:156 (INCLUDE)
  /usr/share/apps/cmake/modules/Qt4ConfigDependentSettings.cmake:32 (FIND_PACKAGE)
  /usr/share/apps/cmake/modules/FindQt4.cmake:1217 (INCLUDE)
  /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:399 (find_package)
  /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:50 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:86 (INCLUDE):
  File /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake
  includes /usr/share/apps/cmake/modules/CMakeParseArguments.cmake (found via
  CMAKE_MODULE_PATH) which shadows
  /usr/share/cmake-2.8/Modules/CMakeParseArguments.cmake.  This may cause
  errors later on .

  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPerl.cmake:47 (INCLUDE)
  /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:416 (find_package)
  /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:50 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake-2.8/Modules/CheckCXXCompilerFlag.cmake:23 (INCLUDE):
  File /usr/share/cmake-2.8/Modules/CheckCXXCompilerFlag.cmake includes
  /usr/share/apps/cmake/modules/CheckCXXSourceCompiles.cmake (found via
  CMAKE_MODULE_PATH) which shadows
  /usr/share/cmake-2.8/Modules/CheckCXXSourceCompiles.cmake.  This may cause
  errors later on .

  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  /usr/share/apps/cmake/modules/FindKDE4Internal.cmake:458 (include)
  /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
  CMakeLists.txt:50 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found KDE 4.5 include dir: /usr/include
-- Found KDE 4.5 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found gpgme-config at /usr/bin/gpgme-config
-- Found gpgme v1.3.0, checking for flavours...
--  Found flavour 'vanilla', checking whether it's usable...yes
--  Found flavour 'pthread', checking whether it's usable...yes
--  Found flavour 'pth', checking whether it's usable...yes
-- Usable gpgme flavours found:  vanilla pthread pth
CMake Warning (dev) at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:86 (INCLUDE):
  File /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake
  includes /usr/share/apps/cmake/modules/CMakeParseArguments.cmake (found via
  CMAKE_MODULE_PATH) which shadows
  /usr/share/cmake-2.8/Modules/CMakeParseArguments.cmake.  This may cause
  errors later on .

  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindDoxygen.cmake:79 (include)
  CMakeLists.txt:78 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- checking for modules 'libxml-2.0;libxml++-2.6;glib-2.0;glibmm-2.4'
--   package 'libxml++-2.6' not found
--   package 'glibmm-2.4' not found
-- Found Libical version 0.44

-------- KMyMoney 4.5.90-svn1226298 --------

Output from cmake --help-policy CMP0017 is as follows
cmake version 2.8.4
  CMP0017
       Prefer files from the CMake module directory when including from
       there.

       Starting with CMake 2.8.4, if a cmake-module shipped with CMake (i.e.
       located in the CMake module directory) calls include() or
       find_package(), the files located in the the CMake module directory
       are prefered over the files in CMAKE_MODULE_PATH.  This makes sure
       that the modules belonging to CMake always get those files included
       which they expect, and against which they were developed and tested.
       In call other cases, the files found in CMAKE_MODULE_PATH still take
       precedence over the ones in the CMake module directory.  The OLD
       behaviour is to always prefer files from CMAKE_MODULE_PATH over files
       from the CMake modules directory.

       This policy was introduced in CMake version 2.8.4.  CMake version
       2.8.4 warns when the policy is not set and uses OLD behavior.  Use the
       cmake_policy command to set it to OLD or NEW explicitly.

Reproducible: Always
Comment 1 Cristian Oneț 2011-05-08 11:03:52 UTC
SVN commit 1230874 by conet:

BUG: 269621

From the description of the policy the new behavior seems safer.

 M  +1 -0      CMakeLists.txt  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1230874