Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
quote QMAKE_* variables
Browse files Browse the repository at this point in the history
thanks @cmourglia
  • Loading branch information
ericLemanissier committed Dec 28, 2018
1 parent 76fe399 commit 41a38ac
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions conanfile.py
Expand Up @@ -342,18 +342,18 @@ def _getenvpath(var):

value = _getenvpath('CC')
if value:
args += ['QMAKE_CC=' + value,
'QMAKE_LINK_C=' + value,
'QMAKE_LINK_C_SHLIB=' + value]
args += ['QMAKE_CC="' + value + '"',
'QMAKE_LINK_C="' + value + '"',
'QMAKE_LINK_C_SHLIB="' + value + '"']

value = _getenvpath('CXX')
if value:
args += ['QMAKE_CXX=' + value,
'QMAKE_LINK=' + value,
'QMAKE_LINK_SHLIB=' + value]
args += ['QMAKE_CXX="' + value + '"',
'QMAKE_LINK="' + value + '"',
'QMAKE_LINK_SHLIB="' + value + '"']

if tools.os_info.is_linux and self.settings.compiler == "clang":
args +=['QMAKE_CXXFLAGS+="-ftemplate-depth=1024"']
args += ['QMAKE_CXXFLAGS+="-ftemplate-depth=1024"']

if self.options.config:
args.append(str(self.options.config))
Expand Down

0 comments on commit 41a38ac

Please sign in to comment.