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

Use platform preprocessor checks #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RytoEX
Copy link
Contributor

@RytoEX RytoEX commented Feb 6, 2025

Instead of using CMake to check the platform and then set a target compile definition to indicate the platform, just directly check the platform by checking known platform defines.

This removes the need for consumers who do not use this repo's CMakeLists.txt to set _UP_WINDOWS or _UP_MAC.

If this was done for a particular reason, feel free to close this pull request.

I don't know how EVH_AVOID_UNNEEDED_COPY_CONSTRUCTORS is used because it isn't used anywhere in this repo, so you'll have to check that that change works for you.

Instead of using CMake to check the platform and then set a target
compile definition to indicate the platform, just directly check the
platform just directly check the platform by checking known platform
defines.
@RytoEX RytoEX force-pushed the use-platform-preprocessor branch from 274520c to d61815a Compare February 6, 2025 00:18
@RytoEX RytoEX changed the title Use platform preprocesor checks Use platform preprocessor checks Feb 19, 2025
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.

1 participant