mingw: add /usr/lib/gcc and ./deps to FIND_ROOT_PATH

This allows CMake to find libraries within the GCC root, and amongst our
built deps.
This commit is contained in:
Danny Robson 2019-06-28 10:25:59 +10:00
parent 839697f03d
commit 63e8d4ebb7

View File

@ -6,7 +6,7 @@ set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
set(CMAKE_RC_FLAGS -DGCC_WINDRES)
set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
set(CMAKE_FIND_ROOT_PATH "/usr/${TOOLCHAIN_PREFIX};/usr/lib/gcc/${TOOLCHAIN_PREFIX}/;${CMAKE_CURRENT_BINARY_DIR}/deps")
# modify default behavior of FIND_XXX() commands to
# search for headers/libs in the target environment and