mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-05 13:49:17 -05:00
Added a note about vcpkg
@ -82,6 +82,12 @@ cmake -H . -B build -G Ninja "-DCMAKE_TOOLCHAIN_FILE=<fullpath_to_emsdk>/upstrea
|
|||||||
_(The "-H ." is deprecated since CMake 3.13 and if you are using higher version please replace the argument with "-S .")_
|
_(The "-H ." is deprecated since CMake 3.13 and if you are using higher version please replace the argument with "-S .")_
|
||||||
_(The ninja generator is optional and you can use your system default by removing "-G Ninja".)_
|
_(The ninja generator is optional and you can use your system default by removing "-G Ninja".)_
|
||||||
|
|
||||||
|
One note here - if you're using **vcpkg **for package management and have installed raylib:wasm32-emscripten you should execute this instead:
|
||||||
|
|
||||||
|
```
|
||||||
|
cmake -H . -B build -G Ninja "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=<fullpath_to_emsdk>/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake" "-DCMAKE_TOOLCHAIN_FILE=<path_to_vcpkg>/scripts/buildsystems/vcpkg.cmake" "-DVCPKG_TARGET_TRIPLET=wasm32-emscripten"
|
||||||
|
```
|
||||||
|
|
||||||
**The third option** is to use the lighter but included toolchain in raylib:
|
**The third option** is to use the lighter but included toolchain in raylib:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user