Skip to content

Commit

Permalink
[CMake] Only add GLEW definitions when GLEW is actually present
Browse files Browse the repository at this point in the history
  • Loading branch information
shonumi committed Apr 26, 2018
1 parent 6643006 commit e091073
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Expand Up @@ -42,11 +42,10 @@ if (WIN32)
find_package(GLEW REQUIRED)
if (GLEW_FOUND)
include_directories($(GLEW_INCLUDE_DIRS))
add_definitions(-DGBE_GLEW)
else()
message(STATUS "GLEW not found.")
endif()

add_definitions(-DGBE_GLEW)
endif()

option(QT_GUI "Enable the Qt GUI" ON)
Expand Down

0 comments on commit e091073

Please sign in to comment.