tpoechtrager / osxcross

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)
GNU General Public License v2.0
2.8k stars 318 forks source link

fix: don't overwrite CMAKE_FIND_ROOT_PATH #396

Closed rasmuspeders1 closed 9 months ago

rasmuspeders1 commented 9 months ago

This enables the use of -DCMAKE_FIND_ROOT_PATH=/additional/root/path.

This is useful when building with dependencies that are built separately and is available in different root path.

This probably also solves: https://github.com/tpoechtrager/osxcross/issues/241

There is discussion about the use case here: https://discourse.cmake.org/t/cmake-find-root-path-and-toolchain-files/3294/3