CMake: Build OpenXR as dll on windows;
@@ -219,6 +219,7 @@ if(LOVR_ENABLE_HEADSET AND LOVR_USE_OPENXR)
include_directories(${OPENXR_INCLUDE_DIRS})
set(LOVR_OPENXR ${OPENXR_LIBRARIES})
else()
+ set(DYNAMIC_LOADER ON CACHE BOOL "")
add_subdirectory(deps/openxr openxr)
set(LOVR_OPENXR openxr_loader)
endif()
@@ -642,9 +643,7 @@ if(WIN32)
move_dll(${LOVR_MSDF})
move_dll(${LOVR_OCULUS_AUDIO})
move_dll(${LOVR_PHONON})
- if(LOVR_USE_OPENXR AND NOT LOVR_SYSTEM_OPENXR)
move_dll(${LOVR_OPENXR})
- endif()
foreach(target ${ALL_PLUGIN_TARGETS})
move_dll(${target})
endforeach()
