Has cmake linking changed with Mojave?

I have `cmake` a project that's always seemed happy looking in `/usr/local/lib` for library dependencies and I'm struggling to get the linker to see the files. Has anything changed with Mojave? I've gone through the cmake.rb formula and don't see any major changes.

I can quite easily correct the problem by adding `LINK_DIRECTORIES(/usr/local/lib)` to my main project file, but this path could change, so I'd rather not commit that back to the main project.


I've asked in a few other places as well...
https://stackoverflow.com/q/54068035/3196753

https://discourse.brew.sh/t/cmake-linking-not-working-since-mojave/3790


Any insight is appreciated! 🙂

Answered by tresf in 345882022

It appears it's a side-effect of the new SDK location. Here's my write-up on it: https://stackoverflow.com/a/54103956/3196753

Accepted Answer

It appears it's a side-effect of the new SDK location. Here's my write-up on it: https://stackoverflow.com/a/54103956/3196753

Has cmake linking changed with Mojave?
 
 
Q