Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix GLEW build #90

Merged
merged 1 commit into from
May 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
if(WIN32)
set(REQUIRED_CMAKE_VERSION 3.4)
else()
set(REQUIRED_CMAKE_VERSION 3.2)
endif()
set(REQUIRED_CMAKE_VERSION 3.7)

cmake_minimum_required(VERSION ${REQUIRED_CMAKE_VERSION})

Expand Down Expand Up @@ -502,8 +498,7 @@ ExternalProject_Add(glew
URL_MD5 ${GLEW_MD5}
DOWNLOAD_DIR ${SDK_DOWNLOAD_DIR}
${GLEW_PATCHSET}
CONFIGURE_COMMAND ${CMAKE_COMMAND}
-G "${CMAKE_GENERATOR}"
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
Expand All @@ -512,7 +507,7 @@ ExternalProject_Add(glew
-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES_}
-DCMAKE_INSTALL_MESSAGE=${CMAKE_INSTALL_MESSAGE}
-DBUILD_UTILS=OFF
<SOURCE_DIR>/build/cmake/
SOURCE_SUBDIR build/cmake
INSTALL_DIR ${SDK_INSTALL_DIR}
)
list(APPEND DIST_PACK_TARGETS glew)
Expand Down