fix pch bug (patch by Brezenbak)
authorChristoph von Wittich <christoph_vw@reactos.org>
Sun, 8 Jan 2006 02:39:11 +0000 (02:39 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Sun, 8 Jan 2006 02:39:11 +0000 (02:39 +0000)
svn path=/trunk/; revision=20694

reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp

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