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



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to