From 8d7b070410714a8c87c9ec51358fbd0e446b6681 Mon Sep 17 00:00:00 2001 From: "Daniele E. Domenichelli" Date: Fri, 2 Aug 2013 17:36:21 +0200 Subject: FindGTK2: Export GTK2_XXX_FOUND to parent scope in _GTK2_FIND_LIBRARY Also add a debug message to report if the library was found or not --- Modules/FindGTK2.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake index 316a2da..669d5d2 100644 --- a/Modules/FindGTK2.cmake +++ b/Modules/FindGTK2.cmake @@ -365,6 +365,7 @@ function(_GTK2_FIND_LIBRARY _var _lib _expand_vc _append_version) select_library_configurations(${_var}) set(${_var}_LIBRARY ${${_var}_LIBRARY} PARENT_SCOPE) + set(${_var}_FOUND ${${_var}_FOUND} PARENT_SCOPE) set(GTK2_LIBRARIES ${GTK2_LIBRARIES} ${${_var}_LIBRARY}) set(GTK2_LIBRARIES ${GTK2_LIBRARIES} PARENT_SCOPE) @@ -376,6 +377,8 @@ function(_GTK2_FIND_LIBRARY _var _lib _expand_vc _append_version) "${_var}_LIBRARY_DEBUG = \"${${_var}_LIBRARY_DEBUG}\"") message(STATUS "[FindGTK2.cmake:${CMAKE_CURRENT_LIST_LINE}] " "${_var}_LIBRARY = \"${${_var}_LIBRARY}\"") + message(STATUS "[FindGTK2.cmake:${CMAKE_CURRENT_LIST_LINE}] " + "${_var}_FOUND = \"${${_var}_FOUND}\"") endif() endfunction() -- cgit v0.12