build opencv in debug mode

This commit is contained in:
Trolli Schmittlauch 2018-10-11 21:27:43 +02:00
parent 844cad9621
commit 67c5bd07d0

View file

@ -186,7 +186,8 @@ let
# TODO: make a nix-shell expression out of this
computerVisionTooling = [
(enableDebugging (opencv3.override {enablePython=true; enableDocs=true; pythonPackages=pkgs.python3Packages;}))
# build with debug symbols and in debug mode (less optimized)
(enableDebugging ((opencv3.override {enablePython=true; enableDocs=true; pythonPackages=pkgs.python3Packages; }).overrideAttrs (oldAttrs: rec {cmakeBuildType = "Debug";})))
];
in