cmtk: add -std=c++11 to fix build on gcc11

This commit is contained in:
Fabián Heredia Montiel 2022-04-15 11:14:41 -05:00
parent 6833a14e6b
commit 8a9d5e296b

View file

@ -12,7 +12,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
NIX_CFLAGS_COMPILE = [
"-std=c++11"
(lib.optional stdenv.cc.isClang "-Wno-error=c++11-narrowing")
];
meta = with lib; {
description = "Computational Morphometry Toolkit ";