Skip to content

Commit

Permalink
onetbb: 2020.x - pass cppstd to make
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekto89 committed Oct 17, 2022
1 parent 126c82e commit 791784e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions recipes/onetbb/2020.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,17 @@ def add_flag(name, value):
extra += " compiler=icl"
else:
extra += " compiler=cl"
cxx_std_flag = tools.cppstd_flag(self.settings)
if cxx_std_flag:
cxx_std_value = (
cxx_std_flag.split("=")[1]
if "=" in cxx_std_flag
else cxx_std_flag.split(":")[1]
if ":" in cxx_std_flag
else None
)
if cxx_std_value:
extra += f" stdver={cxx_std_value}"

make = tools.get_env("CONAN_MAKE_PROGRAM", tools.which("make") or tools.which("mingw32-make"))
if not make:
Expand Down

0 comments on commit 791784e

Please sign in to comment.