[arrayfire] 21/79: Fixed glew header search hints for cmake

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Jun 15 13:38:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository arrayfire.

commit 88e4bbb294a0a2b6066a0dc379069b3a04491ede
Author: pradeep <pradeep at arrayfire.com>
Date:   Thu Jun 4 17:38:46 2015 -0400

    Fixed glew header search hints for cmake
---
 CMakeModules/FindGLEWmx.cmake | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/CMakeModules/FindGLEWmx.cmake b/CMakeModules/FindGLEWmx.cmake
index f86cb05..b90919e 100644
--- a/CMakeModules/FindGLEWmx.cmake
+++ b/CMakeModules/FindGLEWmx.cmake
@@ -12,11 +12,15 @@
 # GLEWmxd_LIBRARY
 # GLEWmxs_LIBRARY
 
-FIND_PACKAGE(GLEW)
-FIND_PACKAGE(OpenGL)
+FIND_PACKAGE(OpenGL REQUIRED)
 
 OPTION(USE_GLEWmx_STATIC "Use Static GLEWmx Lib" OFF)
 
+FIND_PATH(GLEW_INCLUDE_DIR GL/glew.h
+    HINTS
+    ${GLEW_ROOT_DIR}/include
+    )
+
 IF (WIN32)
     FIND_LIBRARY( GLEWmxd_LIBRARY
         NAMES glewmx GLEWmx glew32mx glew32mx

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list