3
0
Fork 0
forked from mirrors/nixpkgs

cmake: Temporarily pass flags

To mimic LLVM 7 behavior we need to pass `-Wno-elaborated-enum-base` in
`CXXFLAGS`. Ideally this gets fixed upstream and won't be necessary.
This commit is contained in:
toonn 2021-04-20 21:54:28 +02:00 committed by Jonathan Ringer
parent 1be8e73fb3
commit 982f7228ff

View file

@ -71,6 +71,7 @@ stdenv.mkDerivation rec {
'';
configureFlags = [
"CXXFLAGS=-Wno-elaborated-enum-base"
"--docdir=share/doc/${pname}${version}"
] ++ (if useSharedLibraries then [ "--no-system-jsoncpp" "--system-libs" ] else [ "--no-system-libs" ]) # FIXME: cleanup
++ lib.optional withQt5 "--qt-gui"