-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Describe the release item
When zenoh-cpp project is opened in vscode with cmake extension installed, lots of cryptic errors appears. This happens because cmake extension tries to run configuration step on CMakeLists.txt and fails because zenoh-c and zenoh-pico libraries are not installed as packages.
Currently to start development zenoh-cpp with zenoh-c/zenoh-pico as packages the following steps should be performed:
- run script
scripts/build_from_git.sh ~/some_dir
. It's not clear without thorough reading of the readme: why this script?, what destination directory to choose? - go to "CMake: Edit CMake Cache (UI)" window and set variable
CMAKE_INSTALL_PREFIX
to the~/some_dir
Only after these steps the build with cmake extension in vscode works.
The proposal is to restore direct include of zenoh-c
and zenoh-pico
when project is opened in vscode (this can be detected by checking TERM_PROGRAM=="vscode" and CMAKE_CURRENT_BINARY_DIR == "${CMAKE_CURRENT_SOURCE_DIR}/build")
In this case the project can be built immediately after opening in vscode, without extra steps.
This requires also support from zenoh-c and zenoh-pico side for "add_subdirectory" command. This was done before but need to be updated now. This is useful to support different ways to use our library in customers cmake project. E.g. the FetchContent
cmake command works through add_subdirectory
and it would be nice to support it.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status