Skip to content

Commit 98f804e

Browse files
authored
add macOS define (#323)
* add macOS define This fixes building the loader on macOS. With this commit I am able to build the loader on macOS as part of the [openxr rust crate](https://github.com/Ralith/openxrs). I have a fork of [hotham-simulator](https://github.com/leetvr/hotham/wiki/Adding-the-Hotham-Simulator-to-your-development-environment) working locally, allowing complete (albeit basic) openXR development locally on my macbook. * add change fragment
1 parent 6d572b7 commit 98f804e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Loader: add -DXR_OS_APPLE define on macOS (fixes compilation on macOS)

src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
139139
add_definitions(-DXR_OS_LINUX)
140140
elseif(ANDROID)
141141
add_definitions(-DXR_OS_ANDROID)
142+
elseif(APPLE)
143+
add_definitions(-DXR_OS_APPLE)
142144
endif()
143145

144146
# /EHsc (support for C++ exceptions) is default in most configurations but seems missing when building arm/arm64.

0 commit comments

Comments
 (0)