diff options
author | don bright <hugh.m.bright@gmail.com> | 2011-10-15 20:48:41 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2011-10-15 20:48:41 (GMT) |
commit | 17ccbace5ff035c156bc49042eab7af2c584b6aa (patch) | |
tree | 95848e2fa1de19f1aeafdc14e523e66a8a358cc8 /tests/FindGLEW.cmake | |
parent | 55f4a6150f4f8bc6fe5c3c17d3d38c73efefe9f2 (diff) |
improve documentation. move EIGEN_DONT_ALIGN to makefile. win32 build fixes.
Diffstat (limited to 'tests/FindGLEW.cmake')
-rw-r--r-- | tests/FindGLEW.cmake | 15 |
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 |