spack/var/spack/repos/builtin/packages/liggghts/makefile-llvm-based-compiler.patch
Aoba a1282337c0
Add liggght patched for newer compiler (#38685)
* Add liggght patched for newer compiler

Add C++ 17 support
Add Clang and Oneapi support

* Add maintainers

* Fix format in liggghts

* Fix maintainers before versions

Co-authored-by: Alec Scott <alec@bcs.sh>

* Fix style and user to usr

* Update package.py

---------

Co-authored-by: Alec Scott <alec@bcs.sh>
2023-10-29 09:56:27 -07:00

22 lines
767 B
Diff

diff --git a/src/MAKE/Makefile.auto b/src/MAKE/Makefile.auto
index 239f886..8f42e73 100644
--- a/src/MAKE/Makefile.auto
+++ b/src/MAKE/Makefile.auto
@@ -816,12 +816,14 @@ ifeq ($(USE_VTK), "ON")
endif
endif
endif
- open_bracket := (
- close_bracket := )
+ open_bracket := ("
+ close_bracket := ")
+ message := message
space :=
space +=
VTK_TMP := $(subst $(open_bracket),$(space),$(VTK_TMP))
VTK_TMP := $(subst $(close_bracket),$(space),$(VTK_TMP))
+ VTK_TMP := $(subst $(message),$(space),$(VTK_TMP))
VTK_MAJOR_VERSION := $(patsubst "%",%,$(word $(words $(VTK_TMP)),$(VTK_TMP)))
ifeq ($(AUTO_DEBUG),1)
$(shell $(ECHO) "#vtk_major_version: $(VTK_MAJOR_VERSION)" >> $(AUTO_LOG_FILE))