Sha256: 4c8967de378e79ea538e87d988e947d67536fab41a6166a097fab79083c89a01
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 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, 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? run cmd, results, class_name, cmake_dir end make dest_path, results, cmake_dir results end end
Version data entries
4 entries across 4 versions & 1 rubygems