diff --git a/cmake/TC-i686-w64-mingw32.cmake b/cmake/TC-i686-w64-mingw32.cmake index 1edbc723a..9e503d7e2 100644 --- a/cmake/TC-i686-w64-mingw32.cmake +++ b/cmake/TC-i686-w64-mingw32.cmake @@ -7,6 +7,7 @@ set(TOOLCHAIN_PREFIX i686-w64-mingw32) set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc) set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++) set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres) +set(PKG_CONFIG_EXECUTABLE ${TOOLCHAIN_PREFIX}-pkg-config) # where is the target environment located set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX}) diff --git a/cmake/TC-x86_64-w64-mingw32.cmake b/cmake/TC-x86_64-w64-mingw32.cmake index 31496252e..51d3001a2 100644 --- a/cmake/TC-x86_64-w64-mingw32.cmake +++ b/cmake/TC-x86_64-w64-mingw32.cmake @@ -7,6 +7,7 @@ set(TOOLCHAIN_PREFIX x86_64-w64-mingw32) set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc) set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++) set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres) +set(PKG_CONFIG_EXECUTABLE ${TOOLCHAIN_PREFIX}-pkg-config) # where is the target environment located set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})