Blob Blame History Raw
From e3806d5a165f5a2b35e727e6c4928e2cece18492 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenko@redhat.com>
Date: Tue, 21 Jun 2016 10:18:12 +0200
Subject: [PATCH 4/5] Unbundle GLEW

Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
---
 CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 919f85a..b157779 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,8 +69,8 @@ include_directories(${ENet_INCLUDE_DIRS})
 
 # Build glew library
 add_definitions(-DGLEW_NO_GLU)
-add_subdirectory("${PROJECT_SOURCE_DIR}/lib/glew")
-include_directories("${PROJECT_SOURCE_DIR}/lib/glew/include")
+find_package(GLEW REQUIRED)
+include_directories(${GLEW_INCLUDE_DIRS})
 
 if((WIN32 AND NOT MINGW) OR APPLE)
     if (NOT APPLE)
@@ -341,7 +341,7 @@ target_link_libraries(supertuxkart
     bulletcollision
     bulletmath
     ${ENet_LIBRARIES}
-    glew
+    ${GLEW_LIBRARIES}
     stkirrlicht
     ${Angelscript_LIBRARIES}
     ${CURL_LIBRARIES}
-- 
2.9.0