Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists.txt: remove vendored tinydtls build path #1539

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

afreof
Copy link

@afreof afreof commented Nov 1, 2024

Do not write the absolute build path into libcoapTargets.cmake. The libcoapTargets.cmake is supposed to be packaged and installed by distros. An absolute path referring to the build directory looks therefore wrong.
Some build frameworks like Yocto have quality assurance check which handle these issues as a warning or as an error. Example:

WARNING: libcoap-4.3.4-r0 do_package_qa: QA Issue:
File /usr/lib/cmake/libcoap/libcoapTargets.cmake in package
libcoap-dev contains reference to TMPDIR [buildpaths]

Declaring this header files as build interface looks like the right fix. In case of a bundled tinytls library the header files should be handled like the header files from libcoap itself: Either in the build folder of libcoap or in /usr/include as declared one line above.

Do not write the absolute build path into libcoapTargets.cmake. The
libcoapTargets.cmake is supposed to be packaged and installed by
distros. An absolute path referring to the build directory looks
therefore wrong.
Some build frameworks like Yocto have quality assurance check which
handle these issues as a warning or as an error. Example:

WARNING: libcoap-4.3.4-r0 do_package_qa: QA Issue:
  File /usr/lib/cmake/libcoap/libcoapTargets.cmake in package
  libcoap-dev contains reference to TMPDIR [buildpaths]

Declaring this header files as build interface looks like the right fix.
In case of a bundled tinytls library the header files should be handled
like the header files from libcoap itself: Either in the build folder of
libcoap or in /usr/include as declared one line above.
@mrdeep1 mrdeep1 merged commit abfe2a3 into obgm:develop Nov 1, 2024
31 checks 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.

2 participants