Sha256: b84a1a0659a7a0d0a2529bdcbcb7e007854128b63fa12acc742fabf2eba99e73

Contents?: true

Size: 408 Bytes

Versions: 2

Compression:

Stored size: 408 Bytes

Contents

require 'rubygems/command'

class Gem::Ext::CmakeBuilder < Gem::Ext::Builder
  def self.build(extension, directory, dest_path, results)
    unless File.exist?('Makefile') then
      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

2 entries across 2 versions & 1 rubygems

Version Path
rubygems-update-2.1.11 lib/rubygems/ext/cmake_builder.rb
rubygems-update-2.1.10 lib/rubygems/ext/cmake_builder.rb