cmtk: add -std=c++11
to fix build on gcc11
This commit is contained in:
parent
6833a14e6b
commit
8a9d5e296b
1 changed files with 4 additions and 1 deletions
|
@ -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 ";
|
||||
|
|
Loading…
Reference in a new issue