target/oxr: Mark the runtime target as a module, not a shared library.

This commit is contained in:
Ryan Pavlik 2020-03-31 11:25:31 -05:00 committed by Jakob Bornecrantz
parent 69b8e8455c
commit a11f5cc429

View file

@ -18,7 +18,7 @@ set(SOURCE_FILES
)
# depends on above generated files
add_library(${RUNTIME_TARGET} SHARED
add_library(${RUNTIME_TARGET} MODULE
${MANIFEST_DEV_PATH}
${MANIFEST_PATH}
${SOURCE_FILES}
@ -67,7 +67,7 @@ install(TARGETS ${RUNTIME_TARGET}
###
# Generate runtime manifest with absolute path to runtime intended for development without installing
set(MANIFEST_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/openxr_monado.in.json)
set(runtime_path $<TARGET_SONAME_FILE:${RUNTIME_TARGET}>)
set(runtime_path $<TARGET_FILE:${RUNTIME_TARGET}>)
# Need this step because file(GENERATE) only evaluates generator expressions, and not what configure_file does.
configure_file(${MANIFEST_INPUT} ${CMAKE_CURRENT_BINARY_DIR}/intermediate_manifest.json)