mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
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:
@@ -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
|
||||
|
||||
+2
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user