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

Improve Multi-Config checks #400

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

jschwe
Copy link
Collaborator

@jschwe jschwe commented Jun 1, 2023

  • Add a warning if CMAKE_CONFIGURATION_TYPES is defined, but the generator is not a multi-config generator.
  • Check GENERATOR_IS_MULTI_CONFIG instead of checking CMAKE_CONFIGURATION_TYPES to be more robust in case a user accidantally specifies CMAKE_CONFIGURATION_TYPES manually but is using a single-config generator. GENERATOR_IS_MULTI_CONFIG is read-only property, so users can't override it.

- Add a warning if CMAKE_CONFIGURATION_TYPES is defined, but the generator
  is not a multi-config generator.
- Check `GENERATOR_IS_MULTI_CONFIG`  instead of checking
 `CMAKE_CONFIGURATION_TYPES` to be more robust in case a user
 accidantally specifies `CMAKE_CONFIGURATION_TYPES` manually but is
 using a single-config generator.
 `GENERATOR_IS_MULTI_CONFIG` is read-only property, so users can't
  override it.
@jschwe jschwe merged commit de3f2f5 into corrosion-rs:master Jun 1, 2023
33 checks passed
@jschwe jschwe deleted the multi_config_checks branch June 1, 2023 09:33
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

1 participant