Last active
June 4, 2020 02:22
-
-
Save Kronuz/96ac10fbd8472eb1e7566d740c4034f8 to your computer and use it in GitHub Desktop.
Homebrew Formula for Google Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Homebrew Formula for Google Test | |
# Usage: brew install --HEAD https://gist.githubusercontent.com/Kronuz/96ac10fbd8472eb1e7566d740c4034f8/raw/gtest.rb | |
require 'formula' | |
class Gtest < Formula | |
desc "Google Test" | |
homepage "https://github.com/google/googletest" | |
head "git://github.com/google/googletest.git", :using => :git | |
stable do | |
url "https://github.com/google/googletest/archive/release-1.8.0.tar.gz" | |
sha256 "58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8" | |
end | |
depends_on "cmake" => :build | |
def install | |
mkdir "build" do | |
system "cmake", "..", *std_cmake_args | |
system "make", "install" | |
end | |
end | |
end |
Issue google/googletest#1323 gives a code update fix for 1.7.0; replacing NULL with nullptr.
Is this package 'drop-in' compatible with gtest 1.7.0? I suspect it might not be due to the version difference.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It complains about some C++ syntax. Adding C++11 support on line 20 will make it compile and work properly. Can you please add this change?
system "cmake", "..", "-DCMAKE_CXX_STANDARD=11", *std_cmake_args