From e2a6097fc09faaac5030d89c319a0b20615eaefa Mon Sep 17 00:00:00 2001
From: Vincent Tavernier <vincent.tavernier@inria.fr>
Date: Mon, 23 Oct 2017 11:05:24 +0200
Subject: [PATCH] Fix oglplus module

---
 modules/liboglplus.cmake | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/liboglplus.cmake b/modules/liboglplus.cmake
index 69632c4..d4d1022 100644
--- a/modules/liboglplus.cmake
+++ b/modules/liboglplus.cmake
@@ -4,10 +4,13 @@
 find_package(oglplus QUIET)
 
 if (NOT oglplus_FOUND)
+	message("-- No installed oglplus package found, looking for include directory")
+
 	# oglplus not found as a package, try to find its include directory
 	find_path(oglplus_INCLUDE_DIRS oglplus/all.hpp)
 
-	if (NOT oglplus_INCLUDE_DIRS EQUAL "oglplus_INCLUDE_DIRS-NOTFOUND")
+	if (oglplus_INCLUDE_DIRS)
+		message("-- Found oglplus at ${oglplus_INCLUDE_DIRS}")
 		set(oglplus_FOUND TRUE)
 	endif()
 endif()
@@ -19,7 +22,7 @@ if (NOT oglplus_FOUND)
 	set(oglplus_TARGET "${CMAKE_CURRENT_BINARY_DIR}/oglplus")
 
 	message("-- oglplus not found, using local copy from ${oglplus_GIT}")
-	
+
 	set(oglplus_INCLUDE_DIRS
 		${oglplus_TARGET}/include
 		${oglplus_TARGET}/implement
-- 
GitLab