[rocm-smi-lib] Disable pdf generation with a patch (#28842)
- Installation often hangs building the documentation. This happens when doxygen and latex are found. To avoid the issue, comment-out that part of the code until an explicit cmake variable to disable documentation generation is available.
This commit is contained in:
parent
853200c42d
commit
7ec9958b48
2 changed files with 17 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
diff --git a/rocm_smi/CMakeLists.txt b/rocm_smi/CMakeLists.txt
|
||||
index 90cad13..02ea897 100755
|
||||
--- a/rocm_smi/CMakeLists.txt
|
||||
+++ b/rocm_smi/CMakeLists.txt
|
||||
@@ -140,8 +140,8 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bindings_link
|
||||
|
||||
|
||||
# Generate Doxygen documentation
|
||||
-find_package(Doxygen)
|
||||
-find_package(LATEX COMPONENTS PDFLATEX)
|
||||
+#find_package(Doxygen)
|
||||
+#find_package(LATEX COMPONENTS PDFLATEX)
|
||||
|
||||
if (DOXYGEN_FOUND AND LATEX_FOUND)
|
||||
set (RSMI_MANUAL_NAME "ROCm_SMI_Manual")
|
|
@ -40,6 +40,8 @@ class RocmSmiLib(CMakePackage):
|
|||
depends_on('cmake@3:', type='build')
|
||||
depends_on('python@3:', type=('build', 'run'), when='@3.9.0:')
|
||||
|
||||
patch('disable_pdf_generation_with_doxygen_and_latex.patch', when='@4.5.2:')
|
||||
|
||||
def cmake_args(self):
|
||||
return [
|
||||
self.define_from_variant('BUILD_SHARED_LIBS', 'shared')
|
||||
|
|
Loading…
Reference in a new issue