lib/xcake/project.rb in xcake-0.6.8 vs lib/xcake/project.rb in xcake-0.6.9
- old
+ new
@@ -65,11 +65,20 @@
# @return [Target] the target
# the newly created target
#
def target(&block)
target = Target.new(&block)
- self.targets << target
+ # Make sure the target inherits the configurations from the project.
+ debug_configurations.each do |c|
+ target.debug_configuration c.name
+ end
+
+ release_configurations.each do |c|
+ target.release_configuration c.name
+ end
+
+ self.targets << target
target
end
# @!group Conversion