From b65cf661a29ca983b4b58e0b54aefe5cf66a31fd Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 22 Oct 2011 20:40:06 +0200 Subject: [PATCH] MinGWCrossCompile.cmake: fix cross builds with recent versions of CMake LMMS failed to build with recent versions of CMake if CMAKE_RC_COMPILER was not set in MinGWCrossCompile.cmake. Furthermore PKG_CONFIG_FOUND manually needs to be set to TRUE. --- cmake/modules/MinGWCrossCompile.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/modules/MinGWCrossCompile.cmake b/cmake/modules/MinGWCrossCompile.cmake index fa711625..aa7dc84c 100644 --- a/cmake/modules/MinGWCrossCompile.cmake +++ b/cmake/modules/MinGWCrossCompile.cmake @@ -12,6 +12,7 @@ SET(MINGW_TOOL_PREFIX ${MINGW_PREFIX}/bin/${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32 # specify the cross compiler SET(CMAKE_C_COMPILER ${MINGW_TOOL_PREFIX}gcc) SET(CMAKE_CXX_COMPILER ${MINGW_TOOL_PREFIX}g++) +SET(CMAKE_RC_COMPILER ${MINGW_TOOL_PREFIX}gcc) IF(WIN64) # specify the cross compiler @@ -24,6 +25,7 @@ ENDIF() SET(STRIP ${MINGW_TOOL_PREFIX}strip) SET(WINDRES ${MINGW_TOOL_PREFIX}windres) SET(PKG_CONFIG_EXECUTABLE ${MINGW_TOOL_PREFIX}pkg-config) +SET(PKG_CONFIG_FOUND TRUE) SET(QT_BINARY_DIR ${MINGW_PREFIX}/bin) SET(QT_QMAKE_EXECUTABLE ${QT_BINARY_DIR}/qmake) -- 2.11.4.GIT