15 lines
703 B
Plaintext
15 lines
703 B
Plaintext
$OpenBSD: patch-CMakeModules_FindGLEW_cmake,v 1.2 2010/10/20 15:32:40 sthen Exp $
|
|
--- CMakeModules/FindGLEW.cmake.orig Sat Sep 4 21:51:34 2010
|
|
+++ CMakeModules/FindGLEW.cmake Sat Sep 4 21:51:34 2010
|
|
@@ -12,8 +12,8 @@ IF(WIN32)
|
|
SET(GLEW_LIBRARIES ${SOURCE_BASE_DIR}/glew/lib/glew32s.lib)
|
|
ENDIF(${HUGIN_SHARED})
|
|
ELSE(WIN32)
|
|
- FIND_PATH(GLEW_INCLUDE_DIR GL/glew.h PATHS /usr/include /usr/local/include)
|
|
- FIND_LIBRARY(GLEW_LIBRARIES GLEW PATHS /usr/lib /usr/local/lib)
|
|
+ FIND_PATH(GLEW_INCLUDE_DIR GL/glew.h PATHS /usr/include ${LOCALBASE}/include)
|
|
+ FIND_LIBRARY(GLEW_LIBRARIES GLEW GL PATHS /usr/lib ${LOCALBASE}/lib ${X11BASE}/lib)
|
|
ENDIF(WIN32)
|
|
|
|
IF (GLEW_INCLUDE_DIR AND GLEW_LIBRARIES)
|