build: fix PCH stub files generation optimization

This commit is contained in:
Alexander Alekhin 2017-06-06 21:09:22 +03:00
parent 125abe2fe4
commit 0e1d65d3b1

View File

@ -97,8 +97,8 @@ MACRO(_PCH_WRITE_PCHDEP_CXX _targetName _include_file _dephelp)
set(${_dephelp} "${CMAKE_CURRENT_BINARY_DIR}/${_targetName}_pch_dephelp.cxx")
set(_content "")
if(EXISTS "${_dephelp}")
file(READ "${_dephelp}" _content)
if(EXISTS "${${_dephelp}}")
file(READ "${${_dephelp}}" _content)
endif()
set(_dummy_str
"#include \"${_include_file}\"