[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 7 Sep 2014 12:33:13 +0000 (12:33 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 7 Sep 2014 12:33:13 +0000 (12:33 +0000)
* Fix Clang toolchain file with regards to static libs creation.

svn path=/trunk/; revision=64059

reactos/toolchain-clang.cmake

index 930dafc..ddbb505 100644 (file)
@@ -47,11 +47,11 @@ set(CMAKE_MC_COMPILER ${MINGW_TOOLCHAIN_PREFIX}windmc)
 set(CMAKE_RC_COMPILER ${MINGW_TOOLCHAIN_PREFIX}windres)
 set(CMAKE_DLLTOOL ${MINGW_TOOLCHAIN_PREFIX}dlltool)
 
-if(NOT LTCG)
-    set(CMAKE_C_CREATE_STATIC_LIBRARY "<CMAKE_AR> crT <TARGET> <LINK_FLAGS> <OBJECTS>")
-else()
-    set(CMAKE_C_CREATE_STATIC_LIBRARY "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
+if(CMAKE_HOST_WIN32)
+    set(CMAKE_AR ar)
 endif()
+
+set(CMAKE_C_CREATE_STATIC_LIBRARY "${CMAKE_AR} crT <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})