fix pch bug (patch by Brezenbak)

svn path=/trunk/; revision=20694
This commit is contained in:
Christoph von Wittich 2006-01-08 02:39:11 +00:00
parent 139c2b58af
commit 992bede333

View file

@ -321,6 +321,9 @@ MSVCBackend::_generate_vcproj ( const Module& module )
string pch_path = Path::RelativeFromDirectory (
module.pch->file.name,
module.GetBasePath() );
string::size_type pos = pch_path.find_last_of ("/");
if ( pos != string::npos )
pch_path.erase(0, pos+1);
fprintf ( OUT, "\t\t\t\tPrecompiledHeaderThrough=\"%s\"\r\n", pch_path.c_str() );
}
else