Sha256: 2e4b7b1db14607e3ab6616950850d435f208fdcf610a236b772f6862254b303d

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 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.1 lib/rubygems/ext/cmake_builder.rb