BelledonneCommunications / bctoolbox

Linphone.org mirror for bctoolbox (git://git.linphone.org/bctoolbox.git)
http://linphone.org
GNU General Public License v3.0
25 stars 33 forks source link

Options in CMake for define a path to install Frameworks in macOS #14

Open judaew opened 3 years ago

judaew commented 3 years ago

Hi there. I'm the maintainer of the bctoolbox port over at MacPorts.

It looks like the Frameworks installation location is hard-coded in the following lines:

https://github.com/BelledonneCommunications/bctoolbox/blob/388770fdc00e24fe15ff25aa62c6bf7df08224d9/src/CMakeLists.txt#L286-L305

... on the line:

FRAMEWORK DESTINATION Frameworks

MacPorts uses the following directory for frameworks: ${prefix}/Library/Frameworks. For example: /opt/local/Library/Frameworks/Python.framework.

I tried to fix this with my patch, but I'm not sure if it does not break anything.

https://raw.githubusercontent.com/macports/macports-ports/master/devel/bctoolbox/files/patch-fix-Frameworks-path.diff

Could you please provide a separate option in CMake that could be used to define a path to install frameworks?