mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
fix pch bug (patch by Brezenbak)
svn path=/trunk/; revision=20694
This commit is contained in:
parent
139c2b58af
commit
992bede333
1 changed files with 3 additions and 0 deletions
|
@ -321,6 +321,9 @@ MSVCBackend::_generate_vcproj ( const Module& module )
|
||||||
string pch_path = Path::RelativeFromDirectory (
|
string pch_path = Path::RelativeFromDirectory (
|
||||||
module.pch->file.name,
|
module.pch->file.name,
|
||||||
module.GetBasePath() );
|
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() );
|
fprintf ( OUT, "\t\t\t\tPrecompiledHeaderThrough=\"%s\"\r\n", pch_path.c_str() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue