Sha256: 5df640ca7d30de0dab39fcb9849d64f3b39a96c62d9b7750082028940a4e359e

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true
require_relative '../command'

class Gem::Ext::CmakeBuilder < Gem::Ext::Builder
  def self.build(extension, dest_path, results, args=[], lib_dir=nil)
    unless File.exist?('Makefile')
      cmd = "cmake . -DCMAKE_INSTALL_PREFIX=#{dest_path}"
      cmd << " #{Gem::Command.build_args.join ' '}" unless Gem::Command.build_args.empty?

      run cmd, results
    end

    make dest_path, results

    results
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubygems-update-3.2.0.rc.2 lib/rubygems/ext/cmake_builder.rb