mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-16 10:19:47 +02:00
1.3 KiB
1.3 KiB
CMake options
Option | Effect |
---|---|
-D CMAKE_BUILD_TYPE=Debug | Enables debug info and disables optimizations |
-D CMAKE_EXPORT_COMPILE_COMMANDS=ON | Creates compile_commands.json for clangd language server
For clangd to find the JSON, create a file named .clangd
. ├── vcmi -> contains sources and is under git control ├── build -> contains build output, makefiles, object files,... └── .clangdwith the following content CompileFlags: |
-D ENABLE_CCACHE:BOOL=ON | Speeds up recompilation |
-G Ninja | Use Ninja build system instead of make, which speeds up the build and doesn't require a -j flag |