cmake: Allow installing arch-independent data outside prefix
This allows installing the architecture independent data outside the prefix, for example on a multiarch layout where the prefix is /usr/{host-triplet}. Closes jp9000/obs-studio#552
This commit is contained in:
parent
7ef690d4e1
commit
187e974375
@ -6,6 +6,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
||||
|
||||
include(ObsHelpers)
|
||||
include(ObsCpack)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
if(MSVC AND NOT EXISTS "${CMAKE_BINARY_DIR}/ALL_BUILD.vcxproj.user")
|
||||
file(GENERATE
|
||||
|
@ -228,7 +228,7 @@ install_obs_core(obs)
|
||||
install_obs_data(obs data obs-studio)
|
||||
|
||||
if (UNIX AND UNIX_STRUCTURE AND NOT APPLE)
|
||||
install(FILES dist/obs.desktop DESTINATION share/applications)
|
||||
install(FILES dist/obs.desktop DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications)
|
||||
install(FILES forms/images/obs.png
|
||||
DESTINATION share/icons/hicolor/256x256/apps)
|
||||
DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/256x256/apps)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user