From 46eaf14e5ec3a03cf14605f38d1676ed1a127b28 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 7 Dec 2014 12:05:38 +0100 Subject: [PATCH] Fixing glog detection --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce1adea20..8fe90b266 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -471,9 +471,9 @@ endif(NOT GFlags_FOUND) ################################################################################ if(NOT ${ENABLE_OWN_GLOG}) find_package(GLOG) - if(NOT GLOG_INCLUDE_DIRS) - set(GLOG_FOUND) - endif(NOT GLOG_INCLUDE_DIRS) + if(GLOG_INCLUDE_DIRS) + set(GLOG_FOUND ON) + endif(GLOG_INCLUDE_DIRS) endif(NOT ${ENABLE_OWN_GLOG}) set(glog_RELEASE 0.3.3) if (NOT GLOG_FOUND OR ${LOCAL_GFLAGS})