[CMAKE] Set CMAKE_OBJCOPY unconditionnally
authorJérôme Gardou <zefklop@users.noreply.github.com>
Fri, 26 Oct 2018 08:16:26 +0000 (10:16 +0200)
committerJérôme Gardou <zefklop@users.noreply.github.com>
Fri, 26 Oct 2018 08:51:52 +0000 (10:51 +0200)
toolchain-gcc.cmake

index 6ffe23d..f6ce3c2 100644 (file)
@@ -53,6 +53,7 @@ set(CMAKE_MC_COMPILER ${MINGW_TOOLCHAIN_PREFIX}windmc)
 set(CMAKE_RC_COMPILER ${MINGW_TOOLCHAIN_PREFIX}windres)
 set(CMAKE_DLLTOOL ${MINGW_TOOLCHAIN_PREFIX}dlltool)
 #set(CMAKE_AR ${MINGW_TOOLCHAIN_PREFIX}gcc-ar${MINGW_TOOLCHAIN_SUFFIX})
+set(CMAKE_OBJCOPY ${MINGW_TOOLCHAIN_PREFIX}objcopy)
 
 set(CMAKE_C_CREATE_STATIC_LIBRARY "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
 set(CMAKE_CXX_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY})