Skip to content

Commit

Permalink
Added -DGLEW_NO_GLU to CMake.
Browse files Browse the repository at this point in the history
Added a link to a github issue about the usage of GLEW_NO_GLU.
  • Loading branch information
v-dobrev committed Nov 3, 2024
1 parent 55a5688 commit 14f6fb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ if (NOT EMSCRIPTEN)
list(APPEND CMAKE_PREFIX_PATH "../glew")
find_package(GLEW REQUIRED)
list(APPEND _glvis_libraries GLEW::GLEW)
# See https://github.com/nigels-com/glew/issues/192
list(APPEND _glvis_compile_defs "GLEW_NO_GLU")

# Find 'glm' which is not part of the CMake standard modules
list(APPEND GLM_DIR "../glm")
Expand Down
1 change: 1 addition & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ OPENGL_LIB_DIR = $(if $(NOTMAC),$(call dir2lib,$(OPENGL_DIR),GL))
OPENGL_LIBS = $(if $(NOTMAC),-lGL,-framework OpenGL -framework Cocoa)


# Regarding -DGLEW_NO_GLU, see https://github.com/nigels-com/glew/issues/192
GL_OPTS ?= $(if $(FREETYPE_DIR),-I$(FREETYPE_DIR)/include/freetype2) \
$(if $(SDL_DIR),-I$(SDL_DIR)/include) \
$(if $(GLEW_DIR),-I$(GLEW_DIR)/include) -DGLEW_NO_GLU \
Expand Down

0 comments on commit 14f6fb9

Please sign in to comment.