Skip to content

CMake: fix absolute include install dir#702

Merged
sashacmc merged 1 commit intoeclipse-zenoh:mainfrom
nim65s:cmake
Mar 13, 2026
Merged

CMake: fix absolute include install dir#702
sashacmc merged 1 commit intoeclipse-zenoh:mainfrom
nim65s:cmake

Conversation

@nim65s
Copy link
Contributor

@nim65s nim65s commented Dec 22, 2025

Hi,

Users may want to provide absolute paths in CMAKE_INSTALL_INCLUDEDIR. When this is the case, we should not prefix it in any way.

Without this, building https://github.com/gazebosim/gz-transport v15 on nixos currently fail with:

CMake Error in test/integration/CMakeLists.txt:
  Imported target "zenohcxx_zenohc" includes non-existent path

    "/nix/store/8vadygf30zr2qlk8cqnnsdjc2h8a72cm-zenoh-cpp-1.4.0//nix/store/8vadygf30zr2qlk8cqnnsdjc2h8a72cm-zenoh-cpp-1.4.0/include"

edit: fix relocatable setup

@github-actions
Copy link

PR missing one of the required labels: {'api-sync', 'new feature', 'breaking-change', 'dependencies', 'enhancement', 'ci', 'documentation', 'internal', 'bug'}

Users may want to provide absolute paths in `CMAKE_INSTALL_INCLUDEDIR`.
When this is the case, we should not prefix it in any way.
@github-actions
Copy link

PR missing one of the required labels: {'new feature', 'bug', 'internal', 'enhancement', 'dependencies', 'documentation', 'breaking-change', 'ci', 'api-sync'}

@nim65s nim65s changed the title CMake: use CMAKE_INSTALL_FULL_INCLUDEDIR CMake: fix absolute include install dir Dec 23, 2025
@DenisBiryukov91 DenisBiryukov91 added the bug Something isn't working label Dec 23, 2025
@sashacmc sashacmc merged commit 0dd5f5a into eclipse-zenoh:main Mar 13, 2026
28 of 29 checks passed
@nim65s nim65s deleted the cmake branch March 13, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants