hydrogen@1.5.3: cmake patch with ESCAPE_QUOTES (#42325)

This commit is contained in:
eugeneswalker 2024-01-26 13:56:16 -08:00 committed by GitHub
parent 29d784e5fa
commit 803ad69eb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -ruN spack-src/CMakeLists.txt spack-src-patched/CMakeLists.txt
--- spack-src/CMakeLists.txt 2023-11-07 21:54:14.000000000 +0000
+++ spack-src-patched/CMakeLists.txt 2024-01-26 19:32:52.140539356 +0000
@@ -515,7 +515,7 @@
# docs (which has the advantage that preprocessing will take
# "{,hydrogen_}config.h" into consideration).
configure_file("${PROJECT_SOURCE_DIR}/cmake/configure_files/config.h.in"
- "${PROJECT_BINARY_DIR}/include/El/config.h")
+ "${PROJECT_BINARY_DIR}/include/El/config.h" ESCAPE_QUOTES)
configure_file("${PROJECT_SOURCE_DIR}/cmake/configure_files/hydrogen_config.h.in"
"${PROJECT_BINARY_DIR}/include/El/hydrogen_config.h")
configure_file("${PROJECT_SOURCE_DIR}/doxy/Doxyfile.in"

View File

@ -130,6 +130,10 @@ class Hydrogen(CachedCMakePackage, CudaPackage, ROCmPackage):
depends_on("llvm-openmp", when="%apple-clang +openmp")
# Fixes https://github.com/spack/spack/issues/42286
# https://github.com/LLNL/Elemental/pull/177
patch("cmake-intel-mpi-escape-quotes-pr177.patch", when="@1.5.3")
@property
def libs(self):
shared = True if "+shared" in self.spec else False