Browse Source

Don't skip the 'cmake' task when it is explicitly call.

Yao Wei Tjong 姚伟忠 5 years ago
parent
commit
0dab09ff66
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Rakefile

+ 1 - 1
Rakefile

@@ -40,7 +40,7 @@ task :cmake do
       abort "Unsupported host system: #{build_host}"
     end
   end
-  next if ENV['PLATFORM'] == 'android' || Dir.exist?("#{build_tree}")
+  next if ENV['PLATFORM'] == 'android' || (Dir.exist?("#{build_tree}") and not ARGV.include?('cmake'))
   script = "script/cmake_#{ENV['GENERATOR']}#{ENV['OS'] ? '.bat' : '.sh'}"
   build_options = /linux|macOS|win/ =~ ENV['PLATFORM'] ? '' : "-D #{ENV['PLATFORM'].upcase}=1"
   File.readlines('script/.build-options').each { |var|