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.

authored by

toonn and committed by
Jonathan Ringer
982f7228 1be8e73f

+1
+1
pkgs/development/tools/build-managers/cmake/default.nix
··· 71 ''; 72 73 configureFlags = [ 74 "--docdir=share/doc/${pname}${version}" 75 ] ++ (if useSharedLibraries then [ "--no-system-jsoncpp" "--system-libs" ] else [ "--no-system-libs" ]) # FIXME: cleanup 76 ++ lib.optional withQt5 "--qt-gui"
··· 71 ''; 72 73 configureFlags = [ 74 + "CXXFLAGS=-Wno-elaborated-enum-base" 75 "--docdir=share/doc/${pname}${version}" 76 ] ++ (if useSharedLibraries then [ "--no-system-jsoncpp" "--system-libs" ] else [ "--no-system-libs" ]) # FIXME: cleanup 77 ++ lib.optional withQt5 "--qt-gui"