The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: Fix destdir repetition when installing systemd units.

Found during packaging.

+4 -4
+4 -4
src/xrt/targets/service/CMakeLists.txt
··· 67 67 mark_as_advanced(XRT_SYSTEMD_UNIT_INSTALL_DIR) 68 68 endif() 69 69 if(XRT_SYSTEMD_UNIT_INSTALL_DIR MATCHES "^/") 70 - # Destination is absolute: prepend only destdir at install time 71 - set(UNIT_DIR "\$ENV{DESTDIR}${XRT_SYSTEMD_UNIT_INSTALL_DIR}") 70 + # Destination is absolute: prepend only destdir (implicitly) at install time 71 + set(UNIT_DIR "${XRT_SYSTEMD_UNIT_INSTALL_DIR}") 72 72 else() 73 - # Destination is relative: prepend destdir and install prefix at install time 74 - set(UNIT_DIR "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${XRT_SYSTEMD_UNIT_INSTALL_DIR}") 73 + # Destination is relative: prepend destdir (implicitly) and install prefix at install time 74 + set(UNIT_DIR "\${CMAKE_INSTALL_PREFIX}/${XRT_SYSTEMD_UNIT_INSTALL_DIR}") 75 75 endif() 76 76 configure_file(configure_and_install_units.cmake ${CMAKE_CURRENT_BINARY_DIR}/configure_and_install_units.cmake @ONLY) 77 77