I have third party cmake project that depends on gnu readline library. So I installed readline by brew install readline
. The problem is, readline is a keg-only formula and cmake tries to link it against libedit
which shadows libreadline
but it lacks some functionalities.
My question is, how can I force cmake to prefer brew version of this library over the system library?
Also, since this would be a osx only problem, it would be great if solution can be applied via command line (instead of changing CMakeList.txt).