Importing Zephyr (sysbuild) Project into CLion — Any Success?
Hi everyone,
I’m trying to import a Zephyr (sysbuild) project into CLion, but I can’t seem to get it working.
CMake Project
According to the documentation, to use sysbuild directly with CMake you need to:
- Set the sysbuild project as the source directory.
- Provide
-DAPP_DIR=<path-to-sample>as an extra CMake argument, or set theAPP_DIRenvironment variable.
APP_DIR should point to the main Zephyr application managed by sysbuild.
However, this setup doesn’t seem to be possible with CLion’s CMake profiles — there’s no obvious way to point CLion’s CMake configuration to use a separate sysbuild source folder while passing APP_DIR.
West Project
The project is located outside the Zephyr source tree, so we couldn’t try the West-based approach. CLion also doesn’t seem to recognize it as a Zephyr/West project automatically.
Has anyone managed to get a sysbuild-based Zephyr project working in CLion?
Any tips or workarounds would be greatly appreciated!
Please sign in to leave a comment.
Hi Marcel Graber!
Do you have an option to convert your CMake project to a West project - https://www.jetbrains.com/help/clion/zephyr.html#convert-cmake-to-west?