cmake: fix cxx98flag's name (#12114)
This commit is contained in:
parent
6fac0ae687
commit
0d690edfb2
@ -115,7 +115,7 @@ def flag_handler(self, name, flags):
|
||||
if name == 'cxxflags' and self.compiler.name == 'fj':
|
||||
cxx11plus_flags = (self.compiler.cxx11_flag,
|
||||
self.compiler.cxx14_flag)
|
||||
cxxpre11_flags = (self.cxx98_flags)
|
||||
cxxpre11_flags = (self.compiler.cxx98_flag)
|
||||
if any(f in flags for f in cxxpre11_flags):
|
||||
raise ValueError('cannot build cmake pre-c++11 standard')
|
||||
elif not any(f in flags for f in cxx11plus_flags):
|
||||
|
Loading…
Reference in New Issue
Block a user