CMake: GLEW_INCLUDE_PATH wasn't set for system glew
authorCampbell Barton <ideasman42@gmail.com>
Mon, 18 Nov 2019 05:26:32 +0000 (16:26 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 18 Nov 2019 05:26:32 +0000 (16:26 +1100)
CMakeLists.txt

index c5c65f8a371159ca1f44548fdd140517ca813dd0..0c2e4f8b6b05bc9848f2ecbc17d486f6b0fcf685 100644 (file)
@@ -1193,6 +1193,7 @@ if(WITH_SYSTEM_GLEW)
     message(FATAL_ERROR "GLEW is required to build Blender. Install it or disable WITH_SYSTEM_GLEW.")
   endif()
 
+  set(GLEW_INCLUDE_PATH "${GLEW_INCLUDE_DIR}")
   set(BLENDER_GLEW_LIBRARIES ${GLEW_LIBRARY})
 else()
   if(WITH_GLEW_ES)