Skip to content

feat: cmake support#8

Open
FoxMoss wants to merge 4 commits into
microsoft:publicfrom
FoxMoss:cmake-support
Open

feat: cmake support#8
FoxMoss wants to merge 4 commits into
microsoft:publicfrom
FoxMoss:cmake-support

Conversation

@FoxMoss
Copy link
Copy Markdown

@FoxMoss FoxMoss commented May 2, 2026

Adds support for CMake so I can intergrate this library downstream via FetchContent.

I ended up having to remove the following build flags:
Global:

  • -Wstack-protector
  • -Wundef

GNU (15.2.1):

  • -Wformat-truncation=2
  • -Wduplicated-branches

Clang (22.1.3):

  • -fbounds-safety
  • and I had to add -Wno-duplicate-decl-specifier

On both the Makefile & CMake to get it to build properly, not sure if this is a compile version difference issue would love to get to the bottom of this.

@FoxMoss
Copy link
Copy Markdown
Author

FoxMoss commented May 2, 2026

@microsoft-github-policy-service agree

@FoxMoss
Copy link
Copy Markdown
Author

FoxMoss commented May 2, 2026

Just checked, seems to be related to #7 will update the code once that gets merged.

Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt
Copy link
Copy Markdown
Contributor

@SIGFUN SIGFUN left a comment

Choose a reason for hiding this comment

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

A few stylistic comments and one question. Thanks for doing this!

Comment thread CMakeLists.txt
Comment thread CMakeLists.txt
Comment thread CMakeLists.txt
@FoxMoss FoxMoss requested a review from SIGFUN May 7, 2026 13:14
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