Handle undefined $PLATFORM

This commit is contained in:
vitaut 2015-08-07 07:21:43 -07:00
parent a8a2982b9a
commit cdcdacef9c

View File

@ -6,7 +6,7 @@ from subprocess import check_call
build = os.environ['BUILD'] build = os.environ['BUILD']
config = os.environ['CONFIGURATION'] config = os.environ['CONFIGURATION']
platform = os.environ['PLATFORM'] platform = os.environ.get('PLATFORM')
path = os.environ['PATH'] path = os.environ['PATH']
cmake_command = ['cmake', '-DFMT_PEDANTIC=ON', '-DCMAKE_BUILD_TYPE=' + config] cmake_command = ['cmake', '-DFMT_PEDANTIC=ON', '-DCMAKE_BUILD_TYPE=' + config]
if build == 'mingw': if build == 'mingw':