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

Update linking to correct CMake target #98

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

marcosbento
Copy link
Collaborator

Since ecflow is built as a module (i.e. a shared library, dynamically loaded by the Python interpreter), the linkage in macOs requires passing flags -undefined and -dynamic_lookup. This is handled directly by CMake which, since CMake 3.15, defines a specific target Python3::Module to be used when building Python modules.

Re ECFLOW-1950

Since ecflow is built as a `module` (i.e. a shared library, dynamically loaded by the Python interpreter), the linkage in macOs requires passing flags `-undefined` and `-dynamic_lookup`.
This is handled directly by CMake which, since CMake 3.15, defines a specific target `Python3::Module` to be used when building Python modules.

Re ECFLOW-1950
@marcosbento marcosbento force-pushed the bugfix/correct_python_linkage branch from 6007b55 to 1d9e56b Compare March 25, 2024 12:46
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.54%. Comparing base (80f8405) to head (1d9e56b).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #98   +/-   ##
========================================
  Coverage    84.54%   84.54%           
========================================
  Files          606      606           
  Lines        54037    54037           
========================================
  Hits         45686    45686           
  Misses        8351     8351           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marcosbento marcosbento merged commit bd1000e into develop Mar 25, 2024
58 checks passed
@marcosbento marcosbento deleted the bugfix/correct_python_linkage branch March 25, 2024 14:02
marcosbento added a commit that referenced this pull request Mar 27, 2024
Since ecflow is built as a `module` (i.e. a shared library, dynamically loaded by the Python interpreter), the linkage in macOs requires passing flags `-undefined` and `-dynamic_lookup`.
This is handled directly by CMake which, since CMake 3.15, defines a specific target `Python3::Module` to be used when building Python modules.

Re ECFLOW-1950
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