diff options
author | bubnikv <bubnikv@gmail.com> | 2018-10-29 18:43:37 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-10-29 18:43:37 +0300 |
commit | 16eeaed2f150a758e1e8c6c0e76119393fd88bdd (patch) | |
tree | e57fd08539e912eb37255ab7ad7d571d4636735f /cmake/modules | |
parent | c1fb4c0c5e60ce31b6e3279989eff8ca69c5afe6 (diff) |
Fixed target path of precompiled headers binary.
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/PrecompiledHeader.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/PrecompiledHeader.cmake b/cmake/modules/PrecompiledHeader.cmake index 1e578d261..2880da9f2 100644 --- a/cmake/modules/PrecompiledHeader.cmake +++ b/cmake/modules/PrecompiledHeader.cmake @@ -87,8 +87,8 @@ function(add_precompiled_header _target _input) endif() if(MSVC) - set(_pch_cxx_pch "${CMAKE_CFG_INTDIR}/cxx_${_input_we}.pch") - set(_pch_c_pch "${CMAKE_CFG_INTDIR}/c_${_input_we}.pch") + set(_pch_cxx_pch "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/cxx_${_input_we}.pch") + set(_pch_c_pch "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/c_${_input_we}.pch") get_target_property(sources ${_target} SOURCES) foreach(_source ${sources}) |