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

On OSX, '-mmacosx-version-min=XXX' compile and link options management #956

Merged

Conversation

VincentRouvreau
Copy link
Contributor

when asked by MACOSX_DEPLOYMENT_TARGET environment variable.
Fix #899

…asked by MACOSX_DEPLOYMENT_TARGET environment variable
@@ -255,8 +255,11 @@ if(PYTHONINTERP_FOUND)

# Specific for Mac
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(GUDHI_PYTHON_EXTRA_COMPILE_ARGS "${GUDHI_PYTHON_EXTRA_COMPILE_ARGS}'-mmacosx-version-min=10.14', ")
set(GUDHI_PYTHON_EXTRA_LINK_ARGS "${GUDHI_PYTHON_EXTRA_LINK_ARGS}'-mmacosx-version-min=10.14', ")
# if MACOSX_DEPLOYMENT_TARGET environment variable is set
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't CMAKE_OSX_DEPLOYMENT_TARGET always defined? (not an issue, just surprised by the comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not aware of this behavior, but yes you are right, it seems CMAKE_OSX_DEPLOYMENT_TARGET is always set on OSx. I reworked the comment on ee221bd

@VincentRouvreau VincentRouvreau added the 3.9.0 GUDHI version 3.9.0 label Sep 8, 2023
@VincentRouvreau VincentRouvreau merged commit fa7f02c into GUDHI:master Sep 8, 2023
@VincentRouvreau VincentRouvreau deleted the macos_compilation_options branch September 8, 2023 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.9.0 GUDHI version 3.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Macos options
2 participants