CMake: Set HAS_OPENGL for every system other than arm64
This commit is contained in:
parent
8a4773bc91
commit
22b0d10568
|
@ -115,8 +115,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Binaries)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/Binary)
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/Binary)
|
||||||
|
|
||||||
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
||||||
string(APPEND CMAKE_RUNTIME_OUTPUT_DIRECTORY /ARM64)
|
string(APPEND CMAKE_RUNTIME_OUTPUT_DIRECTORY /ARM64)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
||||||
|
@ -560,6 +560,11 @@ if(ENABLE_VULKAN)
|
||||||
add_definitions(-DUSE_VULKAN)
|
add_definitions(-DUSE_VULKAN)
|
||||||
endif()
|
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)
|
find_package(pugixml)
|
||||||
if(NOT pugixml_FOUND)
|
if(NOT pugixml_FOUND)
|
||||||
check_vendoring_approved(pugixml)
|
check_vendoring_approved(pugixml)
|
||||||
|
|
Loading…
Reference in New Issue