diff options
author | Daniele E. Domenichelli <daniele.domenichelli@iit.it> | 2013-08-02 15:36:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-08 00:19:29 (GMT) |
commit | 8d7b070410714a8c87c9ec51358fbd0e446b6681 (patch) | |
tree | 8e0af8a0292e3cccf3e0541c5731b7ee3b2ba38e /Modules/FindGTK2.cmake | |
parent | 1bbc7662ea2319e02322664b00ca645acde7f723 (diff) | |
download | CMake-8d7b070410714a8c87c9ec51358fbd0e446b6681.zip CMake-8d7b070410714a8c87c9ec51358fbd0e446b6681.tar.gz CMake-8d7b070410714a8c87c9ec51358fbd0e446b6681.tar.bz2 |
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
Diffstat (limited to 'Modules/FindGTK2.cmake')
-rw-r--r-- | Modules/FindGTK2.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
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() |