adaptations for Appveyor deployment (contributed by Miroslav Ilias)
This commit is contained in:
@ -79,7 +79,8 @@ def gen_cmake_command(config):
|
||||
|
||||
# take care of environment variables
|
||||
for section in config.sections():
|
||||
if config.has_option(section, 'export'):
|
||||
# export on Linux - definitions placed BEFORE own cmake command
|
||||
if config.has_option(section, 'export') and sys.platform != 'win32':
|
||||
for env in config.get(section, 'export').split('\n'):
|
||||
s.append(' command.append(%s)' % env)
|
||||
|
||||
@ -87,6 +88,10 @@ def gen_cmake_command(config):
|
||||
|
||||
# take care of cmake definitions
|
||||
for section in config.sections():
|
||||
# export on Windows - definitions placed AFTER own cmake command
|
||||
if config.has_option(section, 'export') and sys.platform == 'win32':
|
||||
for env in config.get(section, 'export').split('\n'):
|
||||
s.append(' command.append(%s)' % env)
|
||||
if config.has_option(section, 'define'):
|
||||
for definition in config.get(section, 'define').split('\n'):
|
||||
s.append(' command.append(%s)' % definition)
|
||||
|
Reference in New Issue
Block a user