INNER CODE UNIT · Ruby

args

davidchall/homebrew-hep · Formula/cernlib.rb:31

    args = std_cmake_args + %W[
      -DCMAKE_Fortran_COMPILER=gfortran-#{gcc_major_ver}
      -DCMAKE_C_COMPILER=gcc-#{gcc_major_ver}
      -DMOTIF_INCLUDE_DIR=#{Formula["openmotif"].opt_include}
      -DMOTIF_LIBRARIES=#{Formula["openmotif"].opt_lib}/#{shared_library("libXm")}
      -DCMAKE_INSTALL_LIBDIR=lib/cernlib/2023/lib
      -DCMAKE_INSTALL_INCLUDEDIR=include/cernlib/2023
    ]

    mkdir "build" do
      system "xattr", "-rc", "../"
      system "cmake", "..", *args
      system "cmake", "--build", "."
      system "ctest" if build.with? "test"
      system "make", "install"
    end

    license_files = %w[

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…