Mention to look at config.h for cmake options as cmake was changed in #4044

master
jestarray 9 months ago
parent
commit
cd435b0184
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      CMake-Build-Options.md

+ 4
- 3
CMake-Build-Options.md

@ -1,4 +1,4 @@
raylib is configurable and can be built in a variety of ways. Following is a listing of available CMake options and values, extracted from [`src/CMakeOptions.txt`](https://github.com/raysan5/raylib/blob/a1ec0a5bc33ab8726e55fa433ffc08fe3b42e539/src/CMakeOptions.txt).
raylib is configurable and can be built in a variety of ways. Following is a listing of available CMake options and values, extracted from [`src/CMakeOptions.txt`](https://github.com/raysan5/raylib/blob/204872de0947c3f0c3b7bc1319c2d7e1b9568498/CMakeOptions.txt) and [`src/config.h`](https://github.com/raysan5/raylib/blob/204872de0947c3f0c3b7bc1319c2d7e1b9568498/src/config.h)
You must define `-DCUSTOMIZE_BUILD=ON` in order for many of these options to apply. You must define `-DCUSTOMIZE_BUILD=ON` in order for many of these options to apply.
@ -9,13 +9,14 @@ You must define `-DCUSTOMIZE_BUILD=ON` in order for many of these options to app
|`USE_EXTERNAL_GLFW` | Link raylib against system GLFW instead of embedded one | **`OFF`** `ON` `IF_POSSIBLE`| |`USE_EXTERNAL_GLFW` | Link raylib against system GLFW instead of embedded one | **`OFF`** `ON` `IF_POSSIBLE`|
|`PLATFORM` | Platform to build for. | **`Desktop`** `Web` `Android` `Raspberry Pi`| |`PLATFORM` | Platform to build for. | **`Desktop`** `Web` `Android` `Raspberry Pi`|
|`OPENGL_VERSION` | Force a specific OpenGL Version? | **`OFF`** `4.3` `3.3` `2.1` `1.1` `ES 2.0` `ES 3.0`| |`OPENGL_VERSION` | Force a specific OpenGL Version? | **`OFF`** `4.3` `3.3` `2.1` `1.1` `ES 2.0` `ES 3.0`|
|`BUILD_EXAMPLES` | Build examples | **`OFF`** `ON` |
| **Binary Option** | **Description** | **Default** Value| | **Binary Option** | **Description** | **Default** Value|
|:-----------------------------:|:-----------------------------------------------------:|:------------:| |:-----------------------------:|:-----------------------------------------------------:|:------------:|
|`USE_WAYLAND` | Use Wayland for window creation | `OFF`|
|`GLFW_BUILD_WAYLAND` | Build the bundled GLFW with Wayland support | `OFF`|
|`GLFW_BUILD_X11` | Build the bundled GLFW with X11 support | `OFF`|
|`WITH_PIC` | Compile static library as position-independent code | `OFF`| |`WITH_PIC` | Compile static library as position-independent code | `OFF`|
|`BUILD_SHARED_LIBS` | Build raylib as a dynamic or static library | `OFF`| |`BUILD_SHARED_LIBS` | Build raylib as a dynamic or static library | `OFF`|
|`MACOS_FATLIB` | Build fat library for both i386 and x86_64 on macOS | `ON`|
|`USE_AUDIO` | Build raylib with audio module | `ON`| |`USE_AUDIO` | Build raylib with audio module | `ON`|
|`SUPPORT_BUSY_WAIT_LOOP` | Use busy wait loop for timing sync instead of a high-resolution timer | `ON`| |`SUPPORT_BUSY_WAIT_LOOP` | Use busy wait loop for timing sync instead of a high-resolution timer | `ON`|
|`SUPPORT_CAMERA_SYSTEM` | Provide camera module (camera.h) with multiple predefined cameras: free, 1st/3rd person, orbital | `ON`| |`SUPPORT_CAMERA_SYSTEM` | Provide camera module (camera.h) with multiple predefined cameras: free, 1st/3rd person, orbital | `ON`|

Loading…
Cancel
Save