CMAKE_CONFIG_TYPE doesn't seem to work

This partially reverts commit ae45189436.
This commit is contained in:
Ilya Fedin 2025-06-01 02:41:51 +04:00 committed by John Preston
parent ab6375ef2a
commit bf4442ecf5
4 changed files with 3 additions and 4 deletions

View file

@ -104,7 +104,7 @@ jobs:
docker run --rm \
-u $(id -u) \
-v $PWD:/usr/src/tdesktop \
-e CMAKE_CONFIG_TYPE=Debug \
-e CONFIG=Debug \
$IMAGE_TAG \
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
-D CMAKE_CONFIGURATION_TYPES=Debug \

View file

@ -44,7 +44,6 @@ ENV CXXFLAGS $CFLAGS
ENV CMAKE_GENERATOR Ninja
ENV CMAKE_BUILD_TYPE None
ENV CMAKE_CONFIG_TYPE Release
ENV CMAKE_BUILD_PARALLEL_LEVEL ''
FROM builder AS patches

View file

@ -3,4 +3,4 @@ set -e
cd Telegram
./configure.sh "$@"
cmake --build ../out
cmake --build ../out --config "${CONFIG:-Release}"

View file

@ -32,7 +32,7 @@ Or, to create a debug build, run (also using [your **api_id** and **api_hash**](
docker run --rm -it \
-u $(id -u) \
-v "$PWD:/usr/src/tdesktop" \
-e CMAKE_CONFIG_TYPE=Debug \
-e CONFIG=Debug \
tdesktop:centos_env \
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
-D TDESKTOP_API_ID=YOUR_API_ID \