build: Don't say CMAKE_INSTALL_PREFIX in an install destination

This can make it harder for packagers, or at least isn't
"best practices" without a good reason.
This commit is contained in:
Ryan Pavlik 2019-04-08 13:44:20 -05:00 committed by Jakob Bornecrantz
parent 5cfa0907b6
commit d4b47a0edb

View file

@ -93,7 +93,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES "${CMAKE_BINARY_DIR}/${RUNTIME_TARGET}.json" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/openxr/${XR_API_MAJOR}/")
install(FILES "${CMAKE_BINARY_DIR}/${RUNTIME_TARGET}.json" DESTINATION "share/openxr/${XR_API_MAJOR}/")
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
# TODO: install target on windows
endif()