From 63e8d4ebb7528c5ff81d9427ab0688609771ad33 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 28 Jun 2019 10:25:59 +1000 Subject: [PATCH] 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. --- mingw.toolchain | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw.toolchain b/mingw.toolchain index c5425fb..dabc4a4 100644 --- a/mingw.toolchain +++ b/mingw.toolchain @@ -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