From 675a4d3897d7838d1e9d0b876dd16e72afb9cd0d Mon Sep 17 00:00:00 2001 From: "Daniele E. Domenichelli" Date: Fri, 9 Aug 2013 11:07:07 +0200 Subject: FindGTK2: Mark GTK_*_INCLUDE_DIR as advanced --- Modules/FindGTK2.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake index 77aac6d..b604657 100644 --- a/Modules/FindGTK2.cmake +++ b/Modules/FindGTK2.cmake @@ -240,6 +240,7 @@ function(_GTK2_FIND_INCLUDE_DIR _var _hdr) PATH_SUFFIXES ${_suffixes} ) + mark_as_advanced(GTK2_${_var}_INCLUDE_DIR) if(${_var}_INCLUDE_DIR) set(GTK2_INCLUDE_DIRS ${GTK2_INCLUDE_DIRS} ${${_var}_INCLUDE_DIR} PARENT_SCOPE) -- cgit v0.12 From d9eb277631afa5aa00b15d4a90bbd17b9ba754b6 Mon Sep 17 00:00:00 2001 From: "Daniele E. Domenichelli" Date: Fri, 9 Aug 2013 10:55:48 +0200 Subject: FindGTK2: Find freetype quietly --- Modules/FindGTK2.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake index b604657..6147361 100644 --- a/Modules/FindGTK2.cmake +++ b/Modules/FindGTK2.cmake @@ -450,7 +450,7 @@ endif() # Find all components # -find_package(Freetype) +find_package(Freetype QUIET) list(APPEND GTK2_INCLUDE_DIRS ${FREETYPE_INCLUDE_DIRS}) list(APPEND GTK2_LIBRARIES ${FREETYPE_LIBRARIES}) -- cgit v0.12 From 1bbc7662ea2319e02322664b00ca645acde7f723 Mon Sep 17 00:00:00 2001 From: "Daniele E. Domenichelli" Date: Fri, 9 Aug 2013 15:37:52 +0200 Subject: FindGTK2: Search for modules quietly when needed --- Modules/FindGTK2.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake index 6147361..316a2da 100644 --- a/Modules/FindGTK2.cmake +++ b/Modules/FindGTK2.cmake @@ -587,6 +587,8 @@ include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) foreach(_GTK2_component ${GTK2_FIND_COMPONENTS}) string(TOUPPER ${_GTK2_component} _COMPONENT_UPPER) + set(GTK2_${_COMPONENT_UPPER}_FIND_QUIETLY ${GTK2_FIND_QUIETLY}) + if(_GTK2_component STREQUAL "gtk") FIND_PACKAGE_HANDLE_STANDARD_ARGS(GTK2_${_COMPONENT_UPPER} "Some or all of the gtk libraries were not found." GTK2_GTK_LIBRARY -- cgit v0.12