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

Fix link against specific python version on macOS #74

Merged
merged 2 commits into from
Apr 19, 2019
Merged

Fix link against specific python version on macOS #74

merged 2 commits into from
Apr 19, 2019

Conversation

DennisOSRM
Copy link
Contributor

Partio currently has explicit Python version links. This makes it hard to upgrade the hombres formula at this point (Homebrew/homebrew-core#38921). The patch should fix it.

Here is the explanation about why it would be good if you could use the -undefined dynamic_lookup flag while linking under OS X:

Partio currently has explicit Python version links. This makes it hard to upgrade the hombres formula at this point (Homebrew/homebrew-core#38921). The patch should fix it.

[Here is the explanation](http://blog.tim-smith.us/2015/09/python-extension-modules-os-x/) about why it would be good if you could use the -undefined dynamic_lookup flag while linking under OS X:
@@ -52,6 +52,9 @@ IF(WIN32)
ELSE(WIN32)
ADD_COMPILE_OPTIONS (-Wextra -Wno-unused-parameter)
ENDIF(WIN32)
IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set (CMAKE_SHARED_LINKER_FLAGS "-undefined dynamic_lookup")
ENDIF()
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the sug. Would it be more idiomatic to write this as:

IF(APPLE)
   ...
ENDIF()

?

Looks good otherwise. If that construct works for you too then please update it and we'll get this merged in.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the hint. Made the change as requested.

@davvid davvid merged commit 8744c2f into wdas:master Apr 19, 2019
davvid added a commit that referenced this pull request Apr 19, 2019
* DennisOSRM/patch-1:
  Update CMakeLists.txt
  Fix link against specific python version on macOS

Signed-off-by: David Aguilar <david.aguilar@disneyanimation.com>
@DennisOSRM DennisOSRM deleted the patch-1 branch April 21, 2019 20:38
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