From b1c97b02d8ff81b424af7e013217bcf96f751142 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 5 Aug 2011 14:48:47 +0000 Subject: [PATCH] [CMAKE] * 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/cmake/Platform/Windows-cl.cmake b/reactos/cmake/Platform/Windows-cl.cmake index 76c1f6fb983..ea903bd1d1c 100644 --- a/reactos/cmake/Platform/Windows-cl.cmake +++ b/reactos/cmake/Platform/Windows-cl.cmake @@ -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})