lib/xcake/project.rb in xcake-0.6.10 vs lib/xcake/project.rb in xcake-0.6.11
- old
+ new
@@ -64,21 +64,10 @@
#
# @return [Target] the target
# the newly created target
#
def target(&block)
- target = Target.new
-
- # 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
-
- block.call(target) if block_given?
+ target = Target.new(project, &block)
self.targets << target
target
end