From 3a448fda911b1ab17221a8dfd63e00da23746252 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Wed, 19 Nov 2014 12:46:19 +0100 Subject: [PATCH] Windows mingw32: Fix finding of windres binary. --- cmake/modules/AddAppIconMacro.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/AddAppIconMacro.cmake b/cmake/modules/AddAppIconMacro.cmake index 9a223e0ea..3106b1bfa 100644 --- a/cmake/modules/AddAppIconMacro.cmake +++ b/cmake/modules/AddAppIconMacro.cmake @@ -1,4 +1,4 @@ -SET(WINDRES_EXECUTABLE ${CMAKE_RC_COMPILER}) +SET(WINDRES_EXECUTABLE_BASE ${CMAKE_RC_COMPILER}) # This macro is taken from kdelibs/cmake/modules/KDE4Macros.cmake. # @@ -21,7 +21,7 @@ macro (KDE4_ADD_APP_ICON appsources pattern) else(NOT WINCE) find_program(PNG2ICO_EXECUTABLE NAMES png2ico PATHS ${HOST_BINDIR} NO_DEFAULT_PATH ) endif(NOT WINCE) - find_program(WINDRES_EXECUTABLE NAMES windres) + find_program(WINDRES_EXECUTABLE NAMES ${WINDRES_EXECUTABLE_BASE}) if(MSVC) set(WINDRES_EXECUTABLE TRUE) endif(MSVC)