mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 03:26:15 +08:00
cmake: Work around bug in opengl32.lib detection on MSVC ARM64
This commit is contained in:
committed by
Sam Lantinga
parent
77141e84e0
commit
210713a600
+4
-1
@@ -18,7 +18,10 @@ if(WINDOWS)
|
|||||||
add_definitions(-Dmain=SDL_main)
|
add_definitions(-Dmain=SDL_main)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(OpenGL)
|
# CMake incorrectly detects opengl32.lib being present on MSVC ARM64
|
||||||
|
if(NOT MSVC OR NOT CMAKE_GENERATOR_PLATFORM STREQUAL "ARM64")
|
||||||
|
find_package(OpenGL)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (OPENGL_FOUND)
|
if (OPENGL_FOUND)
|
||||||
add_definitions(-DHAVE_OPENGL)
|
add_definitions(-DHAVE_OPENGL)
|
||||||
|
|||||||
Reference in New Issue
Block a user