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

Target use math macros from cmake #235

Merged
merged 2 commits into from
May 2, 2024

Conversation

patkenneally
Copy link
Collaborator

@patkenneally patkenneally commented May 2, 2024

  • Tickets addressed:
  • Review: By commit
  • Merge strategy: Merge (no squash)

Description

On Windows to make available certain math macros like M_PI the _USE_MATH_MACROS macro must be defined. The usage of the macro is not understood by module developers as evidence by its random scattering through some files and not others, or where the developer has luckily (unbeknownst to them) included astroConstants.h which declares the macro.

The first commit defines the macro as a parameter to the compiler in Cmake for all files in a Windows build. As a result this macro no longer needs to be defined on a case by cases basis.

Verification

CI runs and passes

Documentation

None new, none invalidated.

Future work

None

On Windows to make certain math macros like M_PI

squash
@patkenneally patkenneally merged commit 6cce1be into develop May 2, 2024
3 checks passed
@patkenneally patkenneally deleted the feature/target-use-math-macros-from-cmake branch May 2, 2024 19:48
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