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

cmake: declare project() ASAP after cmake_minimum_required() & use c_std_99 compile feature #641

Merged
merged 2 commits into from
Aug 24, 2022

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Aug 17, 2022

  • project() must be declarated after cmake_minimum_required()
  • prefer c_std_99 compile feature rather than an optional toolchain file. Toolchain file is for consumers, not for hard requirements of a project.

it's a hard requirement to compile at least with C99, so it shouldn't be delegated to an optional toolchain file
@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.92% when pulling 310a37e on SpaceIm:fix/cmake-project into 46a581c on uber:master.

@isaacbrodsky
Copy link
Collaborator

Since this is a cleanup PR I'll plan to merge after v4.0.0 is released.

@isaacbrodsky isaacbrodsky merged commit a4395fc into uber:master Aug 24, 2022
@SpaceIm SpaceIm deleted the fix/cmake-project branch August 24, 2022 19:38
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.

None yet

4 participants