[ros-diffs] [akhaldi] 53084: [CMAKE] * Force cl as the C/C++ Compiler when we detect the WDK environment. * Buildbot can now have PCH support back.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Fri Aug 5 14:48:49 UTC 2011


Author: akhaldi
Date: Fri Aug  5 14:48:47 2011
New Revision: 53084

URL: http://svn.reactos.org/svn/reactos?rev=53084&view=rev
Log:
[CMAKE]
* Force cl as the C/C++ Compiler when we detect the WDK environment.
* Buildbot can now have PCH support back.

Modified:
    trunk/reactos/cmake/Platform/Windows-cl.cmake

Modified: trunk/reactos/cmake/Platform/Windows-cl.cmake
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/Platform/Windows-cl.cmake?rev=53084&r1=53083&r2=53084&view=diff
==============================================================================
--- trunk/reactos/cmake/Platform/Windows-cl.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/Platform/Windows-cl.cmake [iso-8859-1] Fri Aug  5 14:48:47 2011
@@ -30,6 +30,11 @@
             set(ARCH i386)
         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})




More information about the Ros-diffs mailing list