View Rakefile
require 'nokogiri'
namespace 'conan' do
desc 'Export Conan binary directories to the CONAN_BINARY_DIRECTORIES environment variable'
task :export_env do
doc = File.open('conanbuildinfo.props') { |f| Nokogiri::XML(f) }
paths = doc.search("ConanBinaryDirectories").first.text
`setx.exe CONAN_BINARY_DIRECTORIES "#{paths}"`
end
end