Remove build type from cmake commands

This commit is contained in:
O1LER 2025-03-08 11:43:47 +01:00
parent e232b9ea98
commit 93385f5424

View File

@ -49,18 +49,22 @@ In the root directory of the project,
1.
```cmake
cmake -DCMAKE_BUILD_TYPE=Release . -B bin -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux
cmake . -B bin -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux
```
2.
```cmake
cmake --build bin --parallel --config Release
cmake --build bin --parallel
```
!!!note
!!!note ""
Should you run out of RAM while building, you can ommit the --parallel instruction, it will then use less RAM due to building only on one CPU thread.
!!!note ""
By not specifying `-DCMAKE_BUILD_TYPE=Release` you are building a debug version, which is larger in filesize but does not cpntain the launcher-can-only-connect-to-a-server-once bug
Move the finished application out of the `/bin` folder into its own folder and run it from there
The native linux BeamMP-Launcher will start and use native linux BeamNG.drive