[CMake] GTK2 Module

Micha Renner Micha.Renner at t-online.de
Fri Feb 11 01:05:42 EST 2011


In FindGTK2.cmake there are some examples how to use this module

find_package(GTK2 2.6 REQUIRED gtk)

generates:
CMake Warning (dev) at CMakeLists.txt:75 (find_package):
  Policy CMP0011 is not set: Included scripts do automatic cmake_policy
PUSH
  and POP.  Run "cmake --help-policy CMP0011" for policy details.  Use
the
  cmake_policy command to set the policy and suppress this warning.

  The included script

    /usr/local/share/cmake-2.8/Modules/FindGTK2.cmake

  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option
for
  compatibility, so the effects are applied to the including context.
This warning is for project developers.  Use -Wno-dev to suppress it.

same with:
find_package(GTK2 2.8 COMPONENTS gtk gtkmm)

Is there a way to use this module, out of the box, without this
complicated message?

GTK Version 3 will come, sooner or later. Maybe one can drop the major
version number. 
E.g GTK2_INCLUDE_DIR etc...

Greetings

Micha





More information about the CMake mailing list