Skip to content

Commit

Permalink
Fix configure error when compiling with -DENABLE_OPENGLES2
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Nov 6, 2018
1 parent f6d98c3 commit 0a50f97
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions CMakeLists.txt
Expand Up @@ -764,12 +764,15 @@ endif()

if(HAVE_OPENGL)
target_link_libraries(supertux2_lib PUBLIC ${OPENGL_LIBRARY})
if(GLBINDING_FOUND)
target_link_libraries(supertux2_lib PUBLIC ${GLBINDING_LIBRARIES})
else()
target_link_libraries(supertux2_lib PUBLIC GLEW::GLEW)
if(NOT ENABLE_OPENGLES2)
if(GLBINDING_FOUND)
target_link_libraries(supertux2_lib PUBLIC ${GLBINDING_LIBRARIES})
else()
target_link_libraries(supertux2_lib PUBLIC GLEW::GLEW)
endif()
endif()
endif(HAVE_OPENGL)

if(HAVE_LIBCURL)
if(VCPKG_BUILD)
target_link_libraries(supertux2_lib PUBLIC ${CURL_LIBRARIES})
Expand Down

0 comments on commit 0a50f97

Please sign in to comment.