How to solve the issue with the situation given in the topic?
I have a project on a C ++ structure that looks like this:
../parse/ ../../export.cpp ../../import.cpp ../../и др. файлы ../precomp.hpp ../precomp.cpp In the current situation, I get a completely logical error:
\ parse \ export.cpp (1): warning C4627: '#include "../precomp.hpp' ': skipped when looking for precompiled header use Add directive to' precomp.hpp 'or rebuild precompiled header
I would like to avoid the situation with the transfer of files from the parse/ folder to a level above where the precomp.hpp file is precomp.hpp , but otherwise I don’t see a way.
So is there a way to compile a project with the current structure with precomp.hpp headers, when the precomp.hpp file precomp.hpp in one and the export.cpp in another?