Fixed target path of precompiled headers binary.

This commit is contained in:
bubnikv 2018-10-29 16:43:37 +01:00
parent c1fb4c0c5e
commit 16eeaed2f1

View File

@ -87,8 +87,8 @@ function(add_precompiled_header _target _input)
endif() endif()
if(MSVC) if(MSVC)
set(_pch_cxx_pch "${CMAKE_CFG_INTDIR}/cxx_${_input_we}.pch") set(_pch_cxx_pch "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/cxx_${_input_we}.pch")
set(_pch_c_pch "${CMAKE_CFG_INTDIR}/c_${_input_we}.pch") set(_pch_c_pch "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/c_${_input_we}.pch")
get_target_property(sources ${_target} SOURCES) get_target_property(sources ${_target} SOURCES)
foreach(_source ${sources}) foreach(_source ${sources})