Merge pull request #52934 from veprbl/pr/arrow_cpp_gtest_fix

arrow-cpp: fix build
This commit is contained in:
Dmitry Kalinkin
2018-12-26 17:43:38 -05:00
committed by GitHub
3 changed files with 8 additions and 7 deletions
+4 -4
View File
@@ -1,4 +1,6 @@
{ stdenv, cmake, ninja, fetchFromGitHub }:
{ stdenv, cmake, ninja, fetchFromGitHub
, static ? false }:
stdenv.mkDerivation rec {
name = "gtest-${version}";
version = "1.8.1";
@@ -18,9 +20,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ninja ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
];
cmakeFlags = stdenv.lib.optional (!static) "-DBUILD_SHARED_LIBS=ON";
meta = with stdenv.lib; {
description = "Google's framework for writing C++ tests";