CMake: Set HAS_OPENGL for every system other than arm64

This commit is contained in:
iwubcode 2020-10-23 16:48:37 -05:00
parent 8a4773bc91
commit 22b0d10568
1 changed files with 7 additions and 2 deletions

View File

@ -560,6 +560,11 @@ if(ENABLE_VULKAN)
add_definitions(-DUSE_VULKAN)
endif()
if(NOT WIN32 OR (NOT (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")))
# OpenGL is available on all platforms except windows-arm64
add_definitions(-DHAS_OPENGL)
endif()
find_package(pugixml)
if(NOT pugixml_FOUND)
check_vendoring_approved(pugixml)