[Cmake-commits] [cmake-commits] hoffman committed cmVisualStudio10TargetGenerator.cxx 1.25 1.26
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Oct 23 17:02:29 EDT 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv21029
Modified Files:
cmVisualStudio10TargetGenerator.cxx
Log Message:
Fix the showing of non-cpp files in the IDE
Index: cmVisualStudio10TargetGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmVisualStudio10TargetGenerator.cxx,v
retrieving revision 1.25
retrieving revision 1.26
diff -C 2 -d -r1.25 -r1.26
*** cmVisualStudio10TargetGenerator.cxx 23 Oct 2009 15:34:36 -0000 1.25
--- cmVisualStudio10TargetGenerator.cxx 23 Oct 2009 21:02:27 -0000 1.26
***************
*** 568,572 ****
((*source)->GetExtension().c_str());
const char* lang = (*source)->GetLanguage();
! if(header || lang && (strcmp(lang, "C") == 0 || strcmp(lang, "CXX") ==0))
{
std::string sourceFile = (*source)->GetFullPath();
--- 568,572 ----
((*source)->GetExtension().c_str());
const char* lang = (*source)->GetLanguage();
! bool cl = lang && (strcmp(lang, "C") == 0 || strcmp(lang, "CXX") ==0);
{
std::string sourceFile = (*source)->GetFullPath();
***************
*** 580,590 ****
this->WriteString("<ClInclude Include=\"", 2);
}
! else
{
this->WriteString("<ClCompile Include=\"", 2);
}
(*this->BuildFileStream ) << sourceFile << "\"";
// ouput any flags specific to this source file
! if(this->OutputSourceSpecificFlags(*source))
{
// if the source file has specific flags the tag
--- 580,594 ----
this->WriteString("<ClInclude Include=\"", 2);
}
! else if(cl)
{
this->WriteString("<ClCompile Include=\"", 2);
}
+ else
+ {
+ this->WriteString("<None Include=\"", 2);
+ }
(*this->BuildFileStream ) << sourceFile << "\"";
// ouput any flags specific to this source file
! if(cl && this->OutputSourceSpecificFlags(*source))
{
// if the source file has specific flags the tag
More information about the Cmake-commits
mailing list