Skip to content

Remove unnecessary nlohmann_json target to avoid namespace conflicts - #14

Merged
bkueng merged 1 commit into
mavlink:mainfrom
JoC2000:json-fix
Apr 7, 2026
Merged

Remove unnecessary nlohmann_json target to avoid namespace conflicts#14
bkueng merged 1 commit into
mavlink:mainfrom
JoC2000:json-fix

Conversation

@JoC2000

@JoC2000 JoC2000 commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Issue:
Compiling mavsdk with -DBUILD_SHARED_LIBS=OFF option and fetching nlohmann_json in the main project causes a cmake target name conflict error.

The actual config is creating a target in the global namespace but is not exposing the library to the consumer.

Fix
Replaced the target with install since it was used only to install a header file.

@hamishwillee
hamishwillee requested a review from bkueng April 1, 2026 21:56
@hamishwillee

Copy link
Copy Markdown
Collaborator

Thanks. I've passed on to @bkueng as he more or less owns this. Beat, is there anyone else you'd want reviewing changes here?

@bkueng bkueng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@bkueng
bkueng merged commit 840a88e into mavlink:main Apr 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants