[Cmake-commits] CMake branch, next, updated. v2.8.11.2-4351-g5e530c1

Daniele E. Domenichelli daniele.domenichelli at gmail.com
Sat Sep 28 07:24:24 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  5e530c1f1d16a33ad01b9832a68a8d3a491bb4c0 (commit)
       via  ff69cecc2838127dc2c21e186abcae6bc1f56a15 (commit)
       via  6451989f64beb2bce60078e65e03e1ee3cb44ccc (commit)
      from  b6c0fbc490f18148dac7ade29d40f7bbf7ea9139 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5e530c1f1d16a33ad01b9832a68a8d3a491bb4c0
commit 5e530c1f1d16a33ad01b9832a68a8d3a491bb4c0
Merge: b6c0fbc ff69cec
Author:     Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
AuthorDate: Sat Sep 28 07:24:21 2013 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Sat Sep 28 07:24:21 2013 -0400

    Merge topic 'FindGTK2-targets' into next
    
    ff69cec FindGTK2: Print target info when building the tests
    6451989 FindGTK2: Print a message instead of returning if a dependency was not found


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ff69cecc2838127dc2c21e186abcae6bc1f56a15
commit ff69cecc2838127dc2c21e186abcae6bc1f56a15
Author:     Daniele E. Domenichelli <daniele.domenichelli at iit.it>
AuthorDate: Sat Sep 28 13:17:05 2013 +0200
Commit:     Daniele E. Domenichelli <daniele.domenichelli at iit.it>
CommitDate: Sat Sep 28 13:22:53 2013 +0200

    FindGTK2: Print target info when building the tests
    
    This will help debugging while tests fail on some build machines.

diff --git a/Tests/FindGTK2/atk/CMakeLists.txt b/Tests/FindGTK2/atk/CMakeLists.txt
index 11c5cc4..1eee089 100644
--- a/Tests/FindGTK2/atk/CMakeLists.txt
+++ b/Tests/FindGTK2/atk/CMakeLists.txt
@@ -4,6 +4,17 @@ project(atk)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::atk
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(atk WIN32 main.c)
diff --git a/Tests/FindGTK2/atkmm/CMakeLists.txt b/Tests/FindGTK2/atkmm/CMakeLists.txt
index 6d06db0..fe39b16 100644
--- a/Tests/FindGTK2/atkmm/CMakeLists.txt
+++ b/Tests/FindGTK2/atkmm/CMakeLists.txt
@@ -4,6 +4,17 @@ project(atkmm)
 
 find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::atkmm
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(atkmm WIN32 main.cpp)
diff --git a/Tests/FindGTK2/cairo/CMakeLists.txt b/Tests/FindGTK2/cairo/CMakeLists.txt
index 124ec13..8baa057 100644
--- a/Tests/FindGTK2/cairo/CMakeLists.txt
+++ b/Tests/FindGTK2/cairo/CMakeLists.txt
@@ -4,6 +4,17 @@ project(cairo)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::cairo
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(cairo WIN32 main.c)
diff --git a/Tests/FindGTK2/cairomm/CMakeLists.txt b/Tests/FindGTK2/cairomm/CMakeLists.txt
index 451c7bc..9c81266 100644
--- a/Tests/FindGTK2/cairomm/CMakeLists.txt
+++ b/Tests/FindGTK2/cairomm/CMakeLists.txt
@@ -4,6 +4,17 @@ project(cairomm)
 
 find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::cairomm
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(cairomm WIN32 main.cpp)
diff --git a/Tests/FindGTK2/gdk/CMakeLists.txt b/Tests/FindGTK2/gdk/CMakeLists.txt
index ebb90f6..401b7b1 100644
--- a/Tests/FindGTK2/gdk/CMakeLists.txt
+++ b/Tests/FindGTK2/gdk/CMakeLists.txt
@@ -4,6 +4,17 @@ project(gdk)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::gdk
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(gdk WIN32 main.c)
diff --git a/Tests/FindGTK2/gdk_pixbuf/CMakeLists.txt b/Tests/FindGTK2/gdk_pixbuf/CMakeLists.txt
index addf9d6..50cc23c 100644
--- a/Tests/FindGTK2/gdk_pixbuf/CMakeLists.txt
+++ b/Tests/FindGTK2/gdk_pixbuf/CMakeLists.txt
@@ -4,6 +4,17 @@ project(gdk_pixbuf)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::gdk_pixbuf
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(gdk_pixbuf WIN32 main.c)
diff --git a/Tests/FindGTK2/gdkmm/CMakeLists.txt b/Tests/FindGTK2/gdkmm/CMakeLists.txt
index 90b8e2c..f2960b5 100644
--- a/Tests/FindGTK2/gdkmm/CMakeLists.txt
+++ b/Tests/FindGTK2/gdkmm/CMakeLists.txt
@@ -4,6 +4,17 @@ project(gdkmm)
 
 find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::gdkmm
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(gdkmm WIN32 main.cpp)
diff --git a/Tests/FindGTK2/gio/CMakeLists.txt b/Tests/FindGTK2/gio/CMakeLists.txt
index 76a809a..56eee88 100644
--- a/Tests/FindGTK2/gio/CMakeLists.txt
+++ b/Tests/FindGTK2/gio/CMakeLists.txt
@@ -4,6 +4,17 @@ project(gio)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::gio
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(gio WIN32 main.c)
diff --git a/Tests/FindGTK2/giomm/CMakeLists.txt b/Tests/FindGTK2/giomm/CMakeLists.txt
index 093dbd5..ff55df6 100644
--- a/Tests/FindGTK2/giomm/CMakeLists.txt
+++ b/Tests/FindGTK2/giomm/CMakeLists.txt
@@ -4,6 +4,17 @@ project(giomm)
 
 find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::giomm
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(giomm WIN32 main.cpp)
diff --git a/Tests/FindGTK2/glib/CMakeLists.txt b/Tests/FindGTK2/glib/CMakeLists.txt
index fc00db3..068a6fd 100644
--- a/Tests/FindGTK2/glib/CMakeLists.txt
+++ b/Tests/FindGTK2/glib/CMakeLists.txt
@@ -4,6 +4,17 @@ project(glib)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::glib
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(glib WIN32 main.c)
diff --git a/Tests/FindGTK2/glibmm/CMakeLists.txt b/Tests/FindGTK2/glibmm/CMakeLists.txt
index 337dcd8..26c1fc9 100644
--- a/Tests/FindGTK2/glibmm/CMakeLists.txt
+++ b/Tests/FindGTK2/glibmm/CMakeLists.txt
@@ -4,6 +4,17 @@ project(glibmm)
 
 find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::glibmm
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(glibmm WIN32 main.cpp)
diff --git a/Tests/FindGTK2/gmodule/CMakeLists.txt b/Tests/FindGTK2/gmodule/CMakeLists.txt
index f70209c..5e0c6f2 100644
--- a/Tests/FindGTK2/gmodule/CMakeLists.txt
+++ b/Tests/FindGTK2/gmodule/CMakeLists.txt
@@ -4,6 +4,17 @@ project(gmodule)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::gmodule
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(gmodule WIN32 main.c)
diff --git a/Tests/FindGTK2/gobject/CMakeLists.txt b/Tests/FindGTK2/gobject/CMakeLists.txt
index 46100eb..70f327e 100644
--- a/Tests/FindGTK2/gobject/CMakeLists.txt
+++ b/Tests/FindGTK2/gobject/CMakeLists.txt
@@ -4,6 +4,17 @@ project(gobject)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::gobject
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(gobject WIN32 main.c)
diff --git a/Tests/FindGTK2/gthread/CMakeLists.txt b/Tests/FindGTK2/gthread/CMakeLists.txt
index 8c3d765..7ffe9d2 100644
--- a/Tests/FindGTK2/gthread/CMakeLists.txt
+++ b/Tests/FindGTK2/gthread/CMakeLists.txt
@@ -4,6 +4,18 @@ project(gthread)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::gthread
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(gthread WIN32 main.c)
diff --git a/Tests/FindGTK2/gtk/CMakeLists.txt b/Tests/FindGTK2/gtk/CMakeLists.txt
index 08956b0..9442ca3 100644
--- a/Tests/FindGTK2/gtk/CMakeLists.txt
+++ b/Tests/FindGTK2/gtk/CMakeLists.txt
@@ -4,6 +4,17 @@ project(gtk)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::gtk
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(gtk WIN32 main.c)
diff --git a/Tests/FindGTK2/gtkmm/CMakeLists.txt b/Tests/FindGTK2/gtkmm/CMakeLists.txt
index 3def73b..403174b 100644
--- a/Tests/FindGTK2/gtkmm/CMakeLists.txt
+++ b/Tests/FindGTK2/gtkmm/CMakeLists.txt
@@ -4,6 +4,17 @@ project(gtkmm)
 
 find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::gtkmm
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(gtkmm-target WIN32 main.cpp helloworld.cpp helloworld.h)
diff --git a/Tests/FindGTK2/pango/CMakeLists.txt b/Tests/FindGTK2/pango/CMakeLists.txt
index f26c122..b5e5dd9 100644
--- a/Tests/FindGTK2/pango/CMakeLists.txt
+++ b/Tests/FindGTK2/pango/CMakeLists.txt
@@ -4,6 +4,17 @@ project(pango)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::pango
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(pango WIN32 main.c)
diff --git a/Tests/FindGTK2/pangocairo/CMakeLists.txt b/Tests/FindGTK2/pangocairo/CMakeLists.txt
index 9ac5ef0..0192859 100644
--- a/Tests/FindGTK2/pangocairo/CMakeLists.txt
+++ b/Tests/FindGTK2/pangocairo/CMakeLists.txt
@@ -4,6 +4,17 @@ project(pangocairo)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::pangocairo
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(pangocairo WIN32 main.c)
diff --git a/Tests/FindGTK2/pangoft2/CMakeLists.txt b/Tests/FindGTK2/pangoft2/CMakeLists.txt
index 8046f98..143fc0f 100644
--- a/Tests/FindGTK2/pangoft2/CMakeLists.txt
+++ b/Tests/FindGTK2/pangoft2/CMakeLists.txt
@@ -4,6 +4,17 @@ project(pangoft2)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::pangoft2
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(pangoft2 WIN32 main.c)
diff --git a/Tests/FindGTK2/pangomm/CMakeLists.txt b/Tests/FindGTK2/pangomm/CMakeLists.txt
index 2668f24..3cd36ad 100644
--- a/Tests/FindGTK2/pangomm/CMakeLists.txt
+++ b/Tests/FindGTK2/pangomm/CMakeLists.txt
@@ -4,6 +4,17 @@ project(pangomm)
 
 find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::pangomm
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(pangomm WIN32 main.cpp)
diff --git a/Tests/FindGTK2/pangoxft/CMakeLists.txt b/Tests/FindGTK2/pangoxft/CMakeLists.txt
index 2cf92bb..bb789f9 100644
--- a/Tests/FindGTK2/pangoxft/CMakeLists.txt
+++ b/Tests/FindGTK2/pangoxft/CMakeLists.txt
@@ -4,6 +4,17 @@ project(pangoxft)
 
 find_package(GTK2 COMPONENTS gtk REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::pangoxft
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(pangoxft WIN32 main.c)
diff --git a/Tests/FindGTK2/sigc++/CMakeLists.txt b/Tests/FindGTK2/sigc++/CMakeLists.txt
index f78df8f..a4fdbb9 100644
--- a/Tests/FindGTK2/sigc++/CMakeLists.txt
+++ b/Tests/FindGTK2/sigc++/CMakeLists.txt
@@ -4,6 +4,17 @@ project(sigc++)
 
 find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
 
+include(CMakePrintHelpers)
+cmake_print_properties(TARGETS GTK2::sigc++
+                       PROPERTIES IMPORTED_CONFIGURATIONS
+                                  IMPORTED_LOCATION_RELEASE
+                                  IMPORTED_LOCATION_DEBUG
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
+                                  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
+                                  INTERFACE_LINK_LIBRARIES
+                                  INTERFACE_INCLUDE_DIRECTORIES
+                                  INTERFACE_COMPILE_DEFINITIONS)
+
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(sigc++ WIN32 main.cpp)

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6451989f64beb2bce60078e65e03e1ee3cb44ccc
commit 6451989f64beb2bce60078e65e03e1ee3cb44ccc
Author:     Daniele E. Domenichelli <daniele.domenichelli at iit.it>
AuthorDate: Sat Sep 28 12:32:23 2013 +0200
Commit:     Daniele E. Domenichelli <daniele.domenichelli at iit.it>
CommitDate: Sat Sep 28 13:21:38 2013 +0200

    FindGTK2: Print a message instead of returning if a dependency was not found
    
    Checks are now executed only if target is supposed to be created, not if the
    library was not found.
    
    This will help finding out the reason why the tests are not executed on some
    build machines.

diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 4459c78..8b5a897 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -459,20 +459,20 @@ function(_GTK2_ADD_TARGET _var)
 
     cmake_parse_arguments(_${_var} "" "" "GTK2_DEPENDS;GTK2_OPTIONAL_DEPENDS;EXTRA_INCLUDES" ${ARGN})
 
-    # Do not create the target if dependencies are missing
-    foreach(_dep ${_${_var}_GTK2_DEPENDS})
-        if(NOT TARGET GTK2::${_dep})
-            return()
-        endif()
-    endforeach()
+    if(GTK2_${_var}_FOUND AND NOT TARGET GTK2::${_basename})
+        # Do not create the target if dependencies are missing
+        foreach(_dep ${_${_var}_GTK2_DEPENDS})
+            if(NOT TARGET GTK2::${_dep})
+                message(WARNING "FindGTK2: target GTK2::${_dep} not found while creating target GTK2::${_basename}")
+            endif()
+        endforeach()
 
-    foreach(_include ${_${_var}_EXTRA_INCLUDES})
-        if(NOT _include)
-            return()
-        endif()
-    endforeach()
+        foreach(_include ${_${_var}_EXTRA_INCLUDES})
+            if(NOT _include)
+                message(WARNING "FindGTK2: ${_include} not found while creating target GTK2::${_basename}")
+            endif()
+        endforeach()
 
-    if(GTK2_${_var}_FOUND AND NOT TARGET GTK2::${_basename})
         add_library(GTK2::${_basename} UNKNOWN IMPORTED)
 
         if(GTK2_${_var}_LIBRARY_RELEASE)

-----------------------------------------------------------------------

Summary of changes:
 Modules/FindGTK2.cmake                   |   24 ++++++++++++------------
 Tests/FindGTK2/atk/CMakeLists.txt        |   11 +++++++++++
 Tests/FindGTK2/atkmm/CMakeLists.txt      |   11 +++++++++++
 Tests/FindGTK2/cairo/CMakeLists.txt      |   11 +++++++++++
 Tests/FindGTK2/cairomm/CMakeLists.txt    |   11 +++++++++++
 Tests/FindGTK2/gdk/CMakeLists.txt        |   11 +++++++++++
 Tests/FindGTK2/gdk_pixbuf/CMakeLists.txt |   11 +++++++++++
 Tests/FindGTK2/gdkmm/CMakeLists.txt      |   11 +++++++++++
 Tests/FindGTK2/gio/CMakeLists.txt        |   11 +++++++++++
 Tests/FindGTK2/giomm/CMakeLists.txt      |   11 +++++++++++
 Tests/FindGTK2/glib/CMakeLists.txt       |   11 +++++++++++
 Tests/FindGTK2/glibmm/CMakeLists.txt     |   11 +++++++++++
 Tests/FindGTK2/gmodule/CMakeLists.txt    |   11 +++++++++++
 Tests/FindGTK2/gobject/CMakeLists.txt    |   11 +++++++++++
 Tests/FindGTK2/gthread/CMakeLists.txt    |   12 ++++++++++++
 Tests/FindGTK2/gtk/CMakeLists.txt        |   11 +++++++++++
 Tests/FindGTK2/gtkmm/CMakeLists.txt      |   11 +++++++++++
 Tests/FindGTK2/pango/CMakeLists.txt      |   11 +++++++++++
 Tests/FindGTK2/pangocairo/CMakeLists.txt |   11 +++++++++++
 Tests/FindGTK2/pangoft2/CMakeLists.txt   |   11 +++++++++++
 Tests/FindGTK2/pangomm/CMakeLists.txt    |   11 +++++++++++
 Tests/FindGTK2/pangoxft/CMakeLists.txt   |   11 +++++++++++
 Tests/FindGTK2/sigc++/CMakeLists.txt     |   11 +++++++++++
 23 files changed, 255 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list