PrusaSlicer-NonPlainar/deps/GLEW/GLEW.cmake
tamasmeszaros 40afbe6371 Update to GLEW 2.2 to prevent initialization crash with wx >= 3.1.6
Revert "Revert to GLEW 2.1 as most Linux distros as using that"

This reverts commit 46c8f82f24.
2022-06-27 16:40:01 +02:00

17 lines
466 B
CMake

# We have to check for OpenGL to compile GLEW
set(OpenGL_GL_PREFERENCE "LEGACY") # to prevent a nasty warning by cmake
find_package(OpenGL QUIET REQUIRED)
prusaslicer_add_cmake_project(
GLEW
URL https://sourceforge.net/projects/glew/files/glew/2.2.0/glew-2.2.0.zip
URL_HASH SHA256=a9046a913774395a095edcc0b0ac2d81c3aacca61787b39839b941e9be14e0d4
SOURCE_SUBDIR build/cmake
CMAKE_ARGS
-DBUILD_UTILS=OFF
)
if (MSVC)
add_debug_dep(dep_GLEW)
endif ()