mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
[CMAKE]
* Add a workaround for the recent MSVC toolchain (MSBUILD) /MP bug. svn path=/trunk/; revision=62300
This commit is contained in:
parent
5d59eafa57
commit
5f2e7f0391
1 changed files with 8 additions and 1 deletions
|
@ -121,7 +121,14 @@ set(CMAKE_ASM_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY})
|
|||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue