diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-01-14 13:37:23 +0900 |
---|---|---|
committer | NARUSE, Yui <nurse@users.noreply.github.com> | 2021-01-14 16:44:42 +0900 |
commit | c721e36ceca587d823a765cbbad90911a20cffce (patch) | |
tree | 96f70401c4ad1a22c688b6516111083d2d2a905c /lib/rubygems/ext/cmake_builder.rb | |
parent | d4f5827a6d445941450a2ec5dac5e51e333ef745 (diff) |
Merge RubyGems-3.2.4
Diffstat (limited to 'lib/rubygems/ext/cmake_builder.rb')
-rw-r--r-- | lib/rubygems/ext/cmake_builder.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rubygems/ext/cmake_builder.rb b/lib/rubygems/ext/cmake_builder.rb index 2efec91f15..269e876cfa 100644 --- a/lib/rubygems/ext/cmake_builder.rb +++ b/lib/rubygems/ext/cmake_builder.rb @@ -4,8 +4,7 @@ require_relative '../command' class Gem::Ext::CmakeBuilder < Gem::Ext::Builder def self.build(extension, dest_path, results, args=[], lib_dir=nil, cmake_dir=Dir.pwd) unless File.exist?(File.join(cmake_dir, 'Makefile')) - cmd = "cmake . -DCMAKE_INSTALL_PREFIX=#{dest_path}" - cmd << " #{Gem::Command.build_args.join ' '}" unless Gem::Command.build_args.empty? + cmd = ["cmake", ".", "-DCMAKE_INSTALL_PREFIX=#{dest_path}", *Gem::Command.build_args] run cmd, results, class_name, cmake_dir end |