Skip to content

Conversation

@kojix2
Copy link

@kojix2 kojix2 commented Nov 15, 2023

This pull request is to avoid specifying -latomic on macOS.

I refer to the following pull request.

@ekg
Copy link
Collaborator

ekg commented Nov 15, 2023 via email

@kojix2
Copy link
Author

kojix2 commented Nov 16, 2023

# add the "-latomic" option only if the system name is not "Darwin.
$<$<NOT:$<STREQUAL:${CMAKE_SYSTEM_NAME},Darwin>>:-latomic>

It works on my Mac mini.
There are no errors related to -latomic.
Although, this code was suggested by ChatGPT, after all...

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