pyswmm / Stormwater-Management-Model

PySWMM Stormwater Management Model repository
Other
99 stars 77 forks source link

Configure CMake/Cpack to relocate OpenMP library into Mac OS build artifact archive #310

Closed michaeltryby closed 1 year ago

michaeltryby commented 4 years ago

Mac in particular has an issue, related to runtime library for OpenMP is not provided as part of Mac OS and needs to be installed via a third party package manager.

Then I thought we should relocate the libomp library too, so users don’t need to install it themselves. But there is no hook in Cpack to run my relocation script like when we build the swmm-toolkit wheel. So it’s back to the drawing board on how to relocate that library into our build artifact/install package.

Options:

We have several options:

  1. We can do nothing and just require users to install libomp themselves.
  2. We write our own script for creating the build artifact archive on Mac.
  3. We can bring libomp into the project as an external library and manage it as part of our build process.
  4. We can upgrade to Cmake v3.19 when it comes out, since it provides the hooks we need for running custom commands during the packaging process.
  5. … any other bright ideas y’all may have.
michaeltryby commented 4 years ago

This is the workaround for a security issue related to running swmm from a Mac OS build artifact archive. It shows how to configure Terminal on Mac to run unsigned applications.

1) Launch System Preferences App, 2) Select Security and Privacy, 3) Select Privacy tab and scroll to Developer Tools -- see screen shot.

Screen Shot 2020-10-29 at 5 47 20 PM