Skip to content

Conversation

@jhlee525
Copy link
Contributor

I changed CMakeLists.txt to enable FetchContent this library from the user library.

  1. In the case of cmake_source_dir, there was an issue where it was overridden with the parent project path when building the library using FetchContent, causing it to not work properly. So I changed cmake_source_dir to project_source_dir.
  2. I remember the header install path is tinycbor/cbor.h, but has the installation path changed to cbor.h? If the cbor.h installation is only performed during the cmake install process, that part should also be fixed.

@thiagomacieira
Copy link
Member

Can you squash the four commits into one and explain in the commit message why those changes are necessary to make TinyCBOR more FetchContent-friendly? The explanation in the PR text is probably sufficient, but no one looks at PR texts after committing, but they do look at commit messages via git blame.

@jhlee525 jhlee525 force-pushed the fetchcontent-frendly branch from f7d0b83 to e108d68 Compare April 15, 2025 09:10
@jhlee525
Copy link
Contributor Author

Changed :)

@jhlee525
Copy link
Contributor Author

However still curious about my question in PR text 2.

@thiagomacieira
Copy link
Member

Please file an issue for the include header. You're right, the CMake conversion is incorrect.

@jhlee525
Copy link
Contributor Author

I added issue #296

If necessary, I can make following PR to resolve this problem

@thiagomacieira
Copy link
Member

I added issue #296

If necessary, I can make following PR to resolve this problem

Please do, it's easier for me to review someone else's changes and approve than getting my own reviewed.

@thiagomacieira thiagomacieira merged commit 0e22432 into intel:main Apr 15, 2025
9 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.

3 participants