build-style/cmake.sh: Use -DCMAKE_BUILD_TYPE=RelWithDebInfo when having XBPS_DEBUG_PKGS set
This commit is contained in:
parent
8e8efa7570
commit
6638dc5526
|
@ -40,7 +40,13 @@ SET(wxWidgets_CONFIG_EXECUTABLE ${XBPS_WRAPPERDIR}/${wx_config:=wx-config})
|
||||||
_EOF
|
_EOF
|
||||||
cmake_args+=" -DCMAKE_TOOLCHAIN_FILE=cross_${XBPS_CROSS_TRIPLET}.cmake"
|
cmake_args+=" -DCMAKE_TOOLCHAIN_FILE=cross_${XBPS_CROSS_TRIPLET}.cmake"
|
||||||
fi
|
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
|
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||||
cmake_args+=" -DCMAKE_INSTALL_LIBDIR=lib32"
|
cmake_args+=" -DCMAKE_INSTALL_LIBDIR=lib32"
|
||||||
|
|
Loading…
Reference in New Issue