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 changes to fix macOS build: #124

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

comex
Copy link

@comex comex commented Jan 29, 2024

- Check whether `CMAKE_CXX_COMPILER_ID` contains the string `Clang`
  rather than being exactly equal.  This way it also matches
  `AppleClang`, which is what CMake uses for the default compiler on
  macOS; see also:

  https://cmake.org/cmake/help/latest/policy/CMP0025.html

- Add `-Wno-sign-compare` to the special options for Flex-generated .c
  files, because Apple's Flex generates code that produces this warning
  by default.  Compare to e.g.:

  vlm/asn1c#321
@marxin marxin merged commit 2f46bdc into marxin:master Jan 30, 2024
1 of 10 checks passed
@marxin
Copy link
Owner

marxin commented Jan 30, 2024

Thanks for the pull request!

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