Use the recommended MinSizeRel instead of Release for CMake

Oussama Teyib
2025-09-11 07:21:30 +00:00
parent 3b5f5e979d
commit 0b539707f3

@ -60,9 +60,9 @@ You can build raylib using either **CMake** or **Make**. Follow the steps below
- Build raylib as a static library: - Build raylib as a static library:
``` ```
cmake -B Build \ cmake -B Build \
-G <build_system> \ -G "<build_system>" \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_TOOLCHAIN_FILE=<path_to_ndk>/build/cmake/android.toolchain.cmake \ -DCMAKE_TOOLCHAIN_FILE=<path_to_ndk>\build\cmake\android.toolchain.cmake \
-DPLATFORM=Android \ -DPLATFORM=Android \
-DANDROID_ABI=<abi> \ -DANDROID_ABI=<abi> \
-DANDROID_PLATFORM=<minimum-api-level> \ -DANDROID_PLATFORM=<minimum-api-level> \
@ -81,7 +81,7 @@ You can build raylib using either **CMake** or **Make**. Follow the steps below
- Navigate to the source folder: - Navigate to the source folder:
``` ```
cd raylib/src cd raylib\src
``` ```
- Build the library: - Build the library:
``` ```