Author: akhaldi
Date: Sun Sep 7 12:33:13 2014
New Revision: 64059
URL:
http://svn.reactos.org/svn/reactos?rev=64059&view=rev
Log:
[CMAKE]
* Fix Clang toolchain file with regards to static libs creation.
Modified:
trunk/reactos/toolchain-clang.cmake
Modified: trunk/reactos/toolchain-clang.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/toolchain-clang.cmake?rev=…
==============================================================================
--- trunk/reactos/toolchain-clang.cmake [iso-8859-1] (original)
+++ trunk/reactos/toolchain-clang.cmake [iso-8859-1] Sun Sep 7 12:33:13 2014
@@ -47,11 +47,11 @@
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})