1
0
OpenShadingLanguage/OpenShadingLanguage-shaderinstalldir.patch

22 lines
1.1 KiB
Diff

Index: src/shaders/CMakeLists.txt
===================================================================
--- src/shaders/CMakeLists.txt.orig 2018-12-02 04:00:52.000000000 +0200
+++ src/shaders/CMakeLists.txt 2019-01-02 12:32:36.665656281 +0200
@@ -63,4 +63,4 @@ add_custom_target (shaders ALL
SOURCES ${shader_source} ${shader_headers})
install (FILES ${shader_headers} ${shader_source} ${shader_objs}
- DESTINATION shaders)
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/shaders)
Index: src/shaders/MaterialX/CMakeLists.txt
===================================================================
--- src/shaders/MaterialX/CMakeLists.txt.orig 2018-12-02 04:00:52.000000000 +0200
+++ src/shaders/MaterialX/CMakeLists.txt 2019-01-02 12:50:34.020012017 +0200
@@ -196,5 +196,5 @@ add_custom_target (mxshaders ALL
SOURCES ${shader_source} ${mx_shader_headers})
install (FILES ${mx_shader_headers} ${mx_shader_objs} ${mx_shader_osls}
- DESTINATION shaders/MaterialX)
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/shaders/MaterialX)