cmake howto: ignoring /usr/local
Ryan Schmidt
ryandesign at macports.org
Sun Jul 6 12:17:13 PDT 2014
On Jul 6, 2014, at 10:30 AM, René J.V. Bertin wrote:
> A quick question concerning the MacPorts cmake-fu: I've noticed that you've managed to get cmake to ignore everything installed in /usr/local . I've tried invoking /opt/local/bin/cmake directly (= not through port) with the exact same arguments as port uses, but then it does find libraries I installed myself in /usr/local .
>
> So: how do you manage to let /usr/local be ignored - clearly you don't rename it temporarily, nor is cmake executed in a chroot ...
I actually didn't think we had managed to get cmake to ignore /usr/local, /sw and /opt/local (when that is not the MacPorts prefix). Many cmake files installed by cmake and other ports explicitly reference those locations, and my ticket requesting these paths be removed by patches has not been addressed, and the maintainer has said he does not think we should be addressing this issue:
https://trac.macports.org/ticket/41720
See also this similar request:
https://trac.macports.org/ticket/41817
More information about the macports-users
mailing list