Commit 79047207 authored by Fabio Pelosin's avatar Fabio Pelosin

[Project] Coherce preprocessor definitions to an array

parent 3e0f9145
......@@ -215,12 +215,13 @@ module Pod
build_configuration = super
values = ["#{name.gsub(' ', '_').upcase}=1"]
settings = build_configuration.build_settings
definitions = Array(settings['GCC_PREPROCESSOR_DEFINITIONS'])
values.each do |value|
definitions = settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= []
unless definitions.include?(value)
definitions << value
end
end
settings['GCC_PREPROCESSOR_DEFINITIONS'] = definitions
build_configuration
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment