mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
757 B
757 B
CMake options
-D CMAKE_BUILD_TYPE=Debug- Enables debug info and disables optimizations
-D CMAKE_EXPORT_COMPILE_COMMANDS=ON- Creates
compile_commands.jsonfor clangd language server. For clangd to find the JSON, create a file named.clangdwith this contentand place it here:CompileFlags: CompilationDatabase: build. ├── vcmi -> contains sources and is under git control ├── build -> contains build output, makefiles, object files,... └── .clangd
- Creates
-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
-jflag
- Use Ninja build system instead of Make, which speeds up the build and doesn't require a