I’m trying to build a bundle for MacOS. To do so, I’ve built the project dependencies in some local directory setting the minimal deployment target to 10.12 and do the same for the project itself, hoping to end up with project that depends on my explicitly build dependencies and core MacOS. To do this, I set
CMAKE_INCLUDE_PATH to the dir I created with dependencies.
The build uses CMake, gcc-10 and Ninja, which I get from Macports. Unfortunately though, it picks e.g.,
libncurses.dylib from Macports, while I just want it to pick the MacOS version. This is due to
pkg-config from Macports. I found a hack to disable
pkg-config, but it still finds
I thought about removing /opt/local/bin from $PATH, but then I get lots of issues due to the Macport tools I want to use.
Does anyone know a good way around this? Right now all I can think of figuring out all the CMake variables it gets wrong and overruling these explicitly. What I would like is "Do not look for libs and include files in