Skip to content

Commit

Permalink
science/cantera: Fix build
Browse files Browse the repository at this point in the history
It was broken because the project used the c++11 mode, but
googletest now requires at least c++14, and they look for
googletest in configure.

Reported by:	fallout
  • Loading branch information
yurivict committed Jul 8, 2023
1 parent e82fb21 commit 34a0340
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions science/cantera/files/patch-SConstruct
@@ -1,5 +1,16 @@
- the first part is fixing the configure failure, see https://github.com/Cantera/cantera/issues/1536

--- SConstruct.orig 2022-05-01 15:31:54 UTC
+++ SConstruct
@@ -191,7 +191,7 @@ config_options = [
{
"cl": "/EHsc",
"Cygwin": "-std=gnu++11", # See http://stackoverflow.com/questions/18784112
- "default": "-std=c++11"
+ "default": "-std=c++14"
}),
Option(
"CC",
@@ -805,6 +805,9 @@ elif "icx" in env.subst("$CC"):
elif "clang" in env.subst("$CC"):
config.select("clang")
Expand Down

0 comments on commit 34a0340

Please sign in to comment.