add specs testing configure :set_define option and fix the same

This commit is contained in:
josh committed 2018-11-25 21:45:46 -05:00
1 parent dff80587ac
commit b88131eb2f
4 files changed
+41 -3

No files matched your search

+3 -3
View File
@@ -398,6 +398,9 @@ module Rscons
success_message = options[:success_message] || "found"
if status == 0
Ansi.write($stdout, :green, "#{success_message}\n")
if options[:set_define]
store_append("CPPDEFINES" => options[:set_define])
end
else
if options.has_key?(:fail) and not options[:fail]
Ansi.write($stdout, :yellow, "not found\n")
@@ -406,9 +409,6 @@ module Rscons
raise ConfigureFailure.new
end
end
if options[:set_define]
store_append("CPPDEFINES" => options[:set_define])
end
end
# Check if a directory contains a certain executable.