cmake: fix cxx98flag's name (#12114)

This commit is contained in:
t-karatsu 2019-07-25 00:28:22 +09:00 committed by Chuck Atkins
parent 6fac0ae687
commit 0d690edfb2

View File

@ -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):