From 8a6b82d946fd20349e4b400937a207f02a497560 Mon Sep 17 00:00:00 2001 From: Fabio Cavallo Date: Mon, 15 Jul 2024 10:56:24 +0200 Subject: [PATCH] Fixed cross compilation. --- cmake/TC-i686-w64-mingw32.cmake | 1 + cmake/TC-x86_64-w64-mingw32.cmake | 1 + 2 files changed, 2 insertions(+) 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})