[SCons] Add helpful error message when cppformat submodule is missing
This commit is contained in:
parent
0647823ada
commit
7c9bc364f5
1 changed files with 6 additions and 0 deletions
|
|
@ -766,6 +766,12 @@ def config_error(message):
|
|||
if not conf.CheckCXXHeader('cmath', '<>'):
|
||||
config_error('The C++ compiler is not correctly configured.')
|
||||
|
||||
# Check that cppformat submodule is in place
|
||||
if not os.path.exists('ext/cppformat/format.h'):
|
||||
config_error('Cppformat submodule is missing.\n'
|
||||
'The module can be checked out using git by running:\n\n'
|
||||
' git submodule update --init --recursive\n')
|
||||
|
||||
def get_expression_value(includes, expression):
|
||||
s = ['#include ' + i for i in includes]
|
||||
s.extend(('#define Q(x) #x',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue