From 5552af23b9d41ac53951c6967d7faab5e9be8ea7 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 26 May 2021 12:48:39 +1000 Subject: [PATCH] mingw: remember to set AR and RANLIB --- cmake/toolchain/mingw | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/toolchain/mingw b/cmake/toolchain/mingw index 22c94da..d7489bd 100644 --- a/cmake/toolchain/mingw +++ b/cmake/toolchain/mingw @@ -3,6 +3,8 @@ set(TOOLCHAIN_PREFIX x86_64-w64-mingw32) set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc) set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++) +set(CMAKE_AR ${TOOLCHAIN_PREFIX}-gcc-ar) +set(CMAKE_RANLIB ${TOOLCHAIN_PREFIX}-gcc-ranlib) set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres) set(CMAKE_RC_FLAGS -DGCC_WINDRES)