[ros-diffs] [akhaldi] 49813: [CMAKE] - Add ccache support.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Sat Nov 27 11:27:10 UTC 2010


Author: akhaldi
Date: Sat Nov 27 11:27:09 2010
New Revision: 49813

URL: http://svn.reactos.org/svn/reactos?rev=49813&view=rev
Log:
[CMAKE]
- Add ccache support.

Modified:
    branches/cmake-bringup/toolchain-mingw32.cmake

Modified: branches/cmake-bringup/toolchain-mingw32.cmake
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/toolchain-mingw32.cmake?rev=49813&r1=49812&r2=49813&view=diff
==============================================================================
--- branches/cmake-bringup/toolchain-mingw32.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/toolchain-mingw32.cmake [iso-8859-1] Sat Nov 27 11:27:09 2010
@@ -16,13 +16,19 @@
 set(MINGW_PREFIX "x86_64-w64-mingw32-" CACHE STRING "MinGW Prefix")
 endif(ARCH MATCHES i386)
 
+if(ENABLE_CCACHE)
+set(CCACHE "ccache" CACHE STRING "ccache")
+else()
+set(CCACHE "" CACHE STRING "ccache")
+endif()
+
 # the name of the target operating system
 SET(CMAKE_SYSTEM_NAME Windows)
 SET(CMAKE_SYSTEM_PROCESSOR i686)
 
 # which compilers to use for C and C++
-SET(CMAKE_C_COMPILER ${MINGW_PREFIX}gcc)
-SET(CMAKE_CXX_COMPILER ${MINGW_PREFIX}g++)
+SET(CMAKE_C_COMPILER ${CCACHE} ${MINGW_PREFIX}gcc)
+SET(CMAKE_CXX_COMPILER ${CCACHE} ${MINGW_PREFIX}g++)
 SET(CMAKE_RC_COMPILER ${MINGW_PREFIX}windres)
 SET(CMAKE_ASM_COMPILER ${MINGW_PREFIX}gcc)
 SET(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -x assembler-with-cpp -o <OBJECT> -I${REACTOS_SOURCE_DIR}/include/asm -I${REACTOS_BINARY_DIR}/include/asm <FLAGS> <DEFINES> -D__ASM__ -c <SOURCE>")




More information about the Ros-diffs mailing list