Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 25 lines 1.2 kB view raw
1--- a/cmake/Macros/PySideModules.cmake 2+++ b/cmake/Macros/PySideModules.cmake 3@@ -176,6 +176,14 @@ macro(create_pyside_module) 4 set(${module_NAME}_glue_dependency ${${module_NAME}_glue}) 5 endif() 6 7+ # Install module doc files. 8+ set(${module_NAME}_doc "${CMAKE_CURRENT_SOURCE_DIR}/../doc/${lower_module_name}.rst") 9+ set(${module_name}_doc_dependency "") 10+ if(EXISTS ${${module_NAME}_doc}) 11+ install(FILES ${${module_NAME}_doc} DESTINATION share/PySide6${pyside6_SUFFIX}/doc) 12+ set(${module_NAME}_doc_dependency ${${module_NAME}_doc}) 13+ endif() 14+ 15 # Install standalone glue files into typesystems subfolder, so that the resolved relative 16 # paths remain correct. 17 if (module_GLUE_SOURCES) 18@@ -245,6 +253,7 @@ macro(create_pyside_module) 19 DEPENDS ${total_type_system_files} 20 ${module_GLUE_SOURCES} 21 ${${module_NAME}_glue_dependency} 22+ ${${module_NAME}_doc_dependency} 23 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} 24 COMMENT "Running generator for ${module_NAME}...") 25