projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d59eaf
)
[CMAKE]
author
Amine Khaldi
<amine.khaldi@reactos.org>
Sun, 23 Feb 2014 12:25:36 +0000
(12:25 +0000)
committer
Amine Khaldi
<amine.khaldi@reactos.org>
Sun, 23 Feb 2014 12:25:36 +0000
(12:25 +0000)
* Add a workaround for the recent MSVC toolchain (MSBUILD) /MP bug.
svn path=/trunk/; revision=62300
reactos/cmake/msvc.cmake
patch
|
blob
|
history
diff --git
a/reactos/cmake/msvc.cmake
b/reactos/cmake/msvc.cmake
index
99d10f7
..
7d21319
100644
(file)
--- a/
reactos/cmake/msvc.cmake
+++ b/
reactos/cmake/msvc.cmake
@@
-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)