cmake: disable building with ncurses if building without ncurses

This commit is contained in:
Joel Taylor 2015-05-15 14:31:40 -07:00
parent 69a6848b57
commit 1aef9fc4af

View File

@ -55,7 +55,9 @@ stdenv.mkDerivation rec {
"--system-libs" "--system-libs"
] ]
++ optional (jsoncpp == null) "--no-system-jsoncpp" ++ optional (jsoncpp == null) "--no-system-jsoncpp"
++ optional useQt4 "--qt-gui"; ++ optional useQt4 "--qt-gui"
++ ["--"]
++ optional (!useNcurses) "-DBUILD_CursesDialog=OFF";
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;