build-style/cmake: add check fo nodebug flag

[ci skip]
This commit is contained in:
John 2019-01-17 14:19:08 +01:00 committed by John Zimmermann
parent 2a1048fd65
commit 6f0fee9429

View file

@ -42,7 +42,7 @@ _EOF
fi
cmake_args+=" -DCMAKE_INSTALL_PREFIX=/usr"
if [ -n "$XBPS_DEBUG_PKGS" ]; then
if [ -n "$XBPS_DEBUG_PKGS"] && [ -z $nodebug ]; then
cmake_args+=" -DCMAKE_BUILD_TYPE=RelWithDebInfo"
else
cmake_args+=" -DCMAKE_BUILD_TYPE=Release"