From cabc96f486e331d5abdee52b164092751554fcd9 Mon Sep 17 00:00:00 2001 From: Matvey Soloviev Date: Tue, 23 Nov 2021 15:57:01 -0500 Subject: [PATCH] Trying to fix automated gcc7.5.0 build of clatexmath, again --- install-clatexmath.sh | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/install-clatexmath.sh b/install-clatexmath.sh index e139584..dff91a2 100755 --- a/install-clatexmath.sh +++ b/install-clatexmath.sh @@ -2,21 +2,38 @@ git clone https://github.com/NanoMichael/cLaTeXMath.git cd cLaTeXMath git reset --hard HEAD +# patch out C++17 feature use in code, but compile with -std=c++17 (cat <= 201703L) || (defined(_MSC_VER) && defined(_HAS_CXX17) && _HAS_CXX17) +-#define CLATEX_CXX17 1 +-#else + #define CLATEX_CXX17 0 +-#endif + + #endif // CONFIG_H_INCLUDED ) | patch -p1 cmake -DCMAKE_BUILD_TYPE=Release -DHAVE_LOG=OFF -DGRAPHICS_DEBUG=OFF . make