Configure a CLion project
There are two options for build systems that you can use with YugabyteDB,
makeis well-supported by CLion, but slower for rebuild comparing to ninja.
ninjais faster, but CLion has limited support for
ninja(for example, it doesn't allow you to rebuild individual files ).
Configure a CLion project for YugabyteDB
Click File > Open… to open the project root directory.
build/debug-clang-dynamic-ninjaif you want to use
ninja) as the Generation path in Preferences > Build, Execution, Deployment/CMake”:
If you want to build with ninja, put
build/debug-clang-dynamic-ninjain Generation path and add
-G Ninjainto “CMake options”:
If you want to build with ninja, use
build/debug-clang-dynamic-ninjaas a "Generation path" and add
-G Ninjainto "CMake options":
Use “File / Reload CMake Project" - it should start building third party dependencies for YugabyteDB. Building a third party can take tens of minutes and then CLion will start updating symbols which also can take a while.
Run from the command line inside project root (omit
YB_USE_NINJA=0if you want to use ninja):
Subsequent builds can be launched also from CLion.