summaryrefslogtreecommitdiff
path: root/tests/FindGLEW.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FindGLEW.cmake')
-rw-r--r--tests/FindGLEW.cmake15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/FindGLEW.cmake b/tests/FindGLEW.cmake
index ffbdcc6..f49d546 100644
--- a/tests/FindGLEW.cmake
+++ b/tests/FindGLEW.cmake
@@ -10,19 +10,20 @@
# a few lines of this file are based on the LGPL code found at
# http://openlibraries.org/browser/trunk/FindGLEW.cmake?rev=1383
+
IF (WIN32)
+ IF (WIN32_STATIC_BUILD) # passed from caller
+ SET(GLEW_LIB_SEARCH_NAME glew32s.lib) # static, non-debug (Release)
+ ELSE ()
+ SET(GLEW_LIB_SEARCH_NAME glew32.lib) # other. untested with OpenSCAD
+ ENDIF()
+
FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
$ENV{PROGRAMFILES}/GLEW/include
${PROJECT_SOURCE_DIR}/src/nvgl/glew/include
DOC "The directory where GL/glew.h resides")
FIND_LIBRARY( GLEW_LIBRARY
-
- # Static linked Release (non-Debug) version
- NAMES glew32s.lib
-
- # Dynamic linked Release (non-Debug) version
- # NAMES glew32.lib
-
+ NAMES ${GLEW_LIB_SEARCH_NAME}
PATHS
$ENV{PROGRAMFILES}/GLEW/lib
${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
contact: Jan Huwald // Impressum