diff --git a/toolchain_mingw.cmake b/toolchain_mingw.cmake index be36119501..13f65de909 100644 --- a/toolchain_mingw.cmake +++ b/toolchain_mingw.cmake @@ -15,3 +15,6 @@ set(CMAKE_CXX_STANDARD_LIBRARIES "" CACHE STRING "" FORCE) set(CMAKE_STANDARD_LIBRARIES "" CACHE STRING "" FORCE) set(CMAKE_SYSTEM_NAME Windows) set(CMAKE_SYSTEM_PROCESSOR ${MINGW_TRIPLE}) + +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)