Use cmake_dependent_option to better declare variables that relate on other variables

This commit is contained in:
Ilya Fedin
2022-08-11 03:30:32 +04:00
committed by John Preston
parent 54f467eb47
commit 8fe48f3ca2
10 changed files with 14 additions and 16 deletions

View File

@@ -24,9 +24,7 @@ Go up to the `tdesktop` directory and run (using [your **api_id** and **api_hash
tdesktop:centos_env \
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
-D TDESKTOP_API_ID=YOUR_API_ID \
-D TDESKTOP_API_HASH=YOUR_API_HASH \
-D DESKTOP_APP_USE_PACKAGED=OFF \
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF
-D TDESKTOP_API_HASH=YOUR_API_HASH
Or, to create a debug build, run (also using [your **api_id** and **api_hash**](#obtain-your-api-credentials))
@@ -36,9 +34,7 @@ Or, to create a debug build, run (also using [your **api_id** and **api_hash**](
tdesktop:centos_env \
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
-D TDESKTOP_API_ID=YOUR_API_ID \
-D TDESKTOP_API_HASH=YOUR_API_HASH \
-D DESKTOP_APP_USE_PACKAGED=OFF \
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF
-D TDESKTOP_API_HASH=YOUR_API_HASH
The built files will be in the `out` directory.