build-style/cmake.sh: Use -DCMAKE_BUILD_TYPE=RelWithDebInfo when having XBPS_DEBUG_PKGS set

This commit is contained in:
John 2019-01-12 14:34:46 +01:00 committed by Enno Boland
parent 8e8efa7570
commit 6638dc5526

View file

@ -40,7 +40,13 @@ SET(wxWidgets_CONFIG_EXECUTABLE ${XBPS_WRAPPERDIR}/${wx_config:=wx-config})
_EOF
cmake_args+=" -DCMAKE_TOOLCHAIN_FILE=cross_${XBPS_CROSS_TRIPLET}.cmake"
fi
cmake_args+=" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release"
cmake_args+=" -DCMAKE_INSTALL_PREFIX=/usr"
if [ -n "$XBPS_DEBUG_PKGS" ]; then
cmake_args+=" -DCMAKE_BUILD_TYPE=RelWithDebInfo"
else
cmake_args+=" -DCMAKE_BUILD_TYPE=Release"
fi
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
cmake_args+=" -DCMAKE_INSTALL_LIBDIR=lib32"