easyloggingpp: Build with C++14 instead of C++11.

This fixes issues with newer versions of gtest.
This commit is contained in:
Simon Hollingshead 2024-02-22 17:42:19 +00:00
parent a331a49cf7
commit 61ac3fbf2f

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [cmake]; nativeBuildInputs = [cmake];
buildInputs = [gtest]; buildInputs = [gtest];
cmakeFlags = [ "-Dtest=ON" ]; cmakeFlags = [ "-Dtest=ON" ];
env.NIX_CFLAGS_COMPILE = "-std=c++11" + env.NIX_CFLAGS_COMPILE = "-std=c++14" +
lib.optionalString stdenv.isLinux " -pthread"; lib.optionalString stdenv.isLinux " -pthread";
postInstall = '' postInstall = ''
mkdir -p $out/include mkdir -p $out/include