Author: akhaldi Date: Sun Feb 23 12:25:36 2014 New Revision: 62300
URL: http://svn.reactos.org/svn/reactos?rev=62300&view=rev Log: [CMAKE] * Add a workaround for the recent MSVC toolchain (MSBUILD) /MP bug.
Modified: trunk/reactos/cmake/msvc.cmake
Modified: trunk/reactos/cmake/msvc.cmake URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/msvc.cmake?rev=62300&... ============================================================================== --- trunk/reactos/cmake/msvc.cmake [iso-8859-1] (original) +++ trunk/reactos/cmake/msvc.cmake [iso-8859-1] Sun Feb 23 12:25:36 2014 @@ -121,7 +121,14 @@
if(PCH) macro(add_pch _target _pch _sources) - set(_gch ${CMAKE_CURRENT_BINARY_DIR}/${_target}.pch) + + # Workaround for the MSVC toolchain (MSBUILD) /MP bug + set(_temp_gch ${CMAKE_CURRENT_BINARY_DIR}/${_target}.pch) + if(MSVC_IDE) + file(TO_NATIVE_PATH ${_temp_gch} _gch) + else() + set(_gch ${_temp_gch}) + endif()
if(IS_CPP) set(_pch_language CXX)