[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 5 Aug 2011 14:48:47 +0000 (14:48 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 5 Aug 2011 14:48:47 +0000 (14:48 +0000)
* Force cl as the C/C++ Compiler when we detect the WDK environment.
* Buildbot can now have PCH support back.

svn path=/trunk/; revision=53084

reactos/cmake/Platform/Windows-cl.cmake

index 76c1f6f..ea903bd 100644 (file)
@@ -31,6 +31,11 @@ if(CMAKE_USE_WDK_ENV)
         endif()
     endif()
 
+    # Force C/C++ Compilers
+    include(CMakeForceCompiler)
+    CMAKE_FORCE_C_COMPILER(cl MSVC)
+    CMAKE_FORCE_CXX_COMPILER(cl MSVC)
+
     # Add library directories
     STRING(REPLACE * ${ARCH} ATL_LIB_PATH $ENV{ATL_LIB_PATH})
     STRING(REPLACE * ${ARCH} CRT_LIB_PATH $ENV{CRT_LIB_PATH})