[CMAKE]
authorSylvain Petreolle <spetreolle@yahoo.fr>
Mon, 29 Aug 2011 13:15:14 +0000 (13:15 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Mon, 29 Aug 2011 13:15:14 +0000 (13:15 +0000)
Let cmake find mingw32-ar by itself on *nix, otherwise cmake errors out.
See http://www.mail-archive.com/cmake@cmake.org/msg27491.html for details.

svn path=/trunk/; revision=53488

reactos/toolchain-gcc.cmake

index d760592..9aa6ce6 100644 (file)
@@ -35,7 +35,6 @@ set(CMAKE_RC_COMPILER ${MINGW_PREFIX}windres)
 set(CMAKE_ASM_COMPILER ${MINGW_PREFIX}gcc)
 
 if(NOT CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
-    set(CMAKE_AR ${MINGW_PREFIX}ar)
     set(CMAKE_C_CREATE_STATIC_LIBRARY "${CMAKE_AR} crs <TARGET> <LINK_FLAGS> <OBJECTS>")
     set(CMAKE_CXX_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY})
     set(CMAKE_ASM_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY})