contrib: only force CMAKE_RC_COMPILER when cross compiling
authorSteve Lhomme <robUx4@videolabs.io>
Wed, 14 Jun 2017 12:01:53 +0000 (14:01 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 14 Jun 2017 14:46:33 +0000 (16:46 +0200)
The default rule (does) work on mingw

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
contrib/src/main.mak

index be37866..e95b789 100644 (file)
@@ -468,8 +468,10 @@ ifndef WITH_OPTIMIZATION
 else
        echo "set(CMAKE_BUILD_TYPE Release)" >> $@
 endif
+ifdef HAVE_CROSS_COMPILE
        echo "set(CMAKE_RC_COMPILER $(HOST)-windres)" >> $@
 endif
+endif
 ifdef HAVE_DARWIN_OS
        echo "set(CMAKE_SYSTEM_NAME Darwin)" >> $@
        echo "set(CMAKE_C_FLAGS $(CFLAGS) $(EXTRA_CFLAGS))" >> $@