diff options
author | don bright <hugh.m.bright@gmail.com> | 2011-12-31 16:02:55 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2011-12-31 16:02:55 (GMT) |
commit | 3d686118bbced68f9a9af69339e2998b28139756 (patch) | |
tree | a067a65ed67d0afd06f1ad02c86e8d11924f01d6 /tests/FindGLEW.cmake | |
parent | 7a044adfb8f7d9a1e64b72fb9a4a873b0449e4f6 (diff) |
enable linux->mingw32 cross-compilation of tests
Diffstat (limited to 'tests/FindGLEW.cmake')
-rw-r--r-- | tests/FindGLEW.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/FindGLEW.cmake b/tests/FindGLEW.cmake index fa3071f..42b06ff 100644 --- a/tests/FindGLEW.cmake +++ b/tests/FindGLEW.cmake @@ -11,13 +11,17 @@ # http://openlibraries.org/browser/trunk/FindGLEW.cmake?rev=1383 -IF (WIN32) +IF (WIN32 AND MSVC) 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() +ELSEIF () # GCC + SET(GLEW_LIB_SEARCH_NAME "libglew32s.a") +ENDIF () +IF (WIN32) FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h $ENV{PROGRAMFILES}/GLEW/include ${PROJECT_SOURCE_DIR}/src/nvgl/glew/include |