From a8f8278902804315281482dbfc1e510ec8f417ca Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 7 Aug 2012 15:59:20 +0400 Subject: [PATCH] Check for gthread as well while checking for glib. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8fe31ddf..856964142 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -429,10 +429,10 @@ IF(OPENSSL_FOUND) ENDIF(OPENSSL_FOUND) IF(ENABLE_STATIC MATCHES "ON") - pkg_check_modules(GLIB2 REQUIRED glib-2.0>=2.12 gmodule-2.0) + pkg_check_modules(GLIB2 REQUIRED glib-2.0>=2.12 gthread-2.0 gmodule-2.0) SET(LINK_TYPE "STATIC") ELSE(ENABLE_STATIC MATCHES "ON") - pkg_check_modules(GLIB2 REQUIRED glib-2.0>=2.12 gmodule-2.0) + pkg_check_modules(GLIB2 REQUIRED glib-2.0>=2.12 gthread-2.0 gmodule-2.0) IF(NO_SHARED MATCHES "OFF") SET(LINK_TYPE "SHARED") ELSE(NO_SHARED MATCHES "OFF") -- 2.39.5