mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
ENH: Fixed INSTALL_FILES and INSTALL_PROGRAMS commands to not create targets. No targets of type cmTarget::INSTALL_FILES or cmTarget::INSTALL_PROGRAMS are created, so we do not need to check for them everywhere anymore.
This commit is contained in:
@@ -141,19 +141,13 @@ void cmLocalVisualStudio6Generator::OutputDSPFile()
|
||||
case cmTarget::GLOBAL_TARGET:
|
||||
this->SetBuildType(UTILITY, l->first.c_str(), l->second);
|
||||
break;
|
||||
case cmTarget::INSTALL_FILES:
|
||||
break;
|
||||
case cmTarget::INSTALL_PROGRAMS:
|
||||
break;
|
||||
default:
|
||||
cmSystemTools::Error("Bad target type", l->first.c_str());
|
||||
break;
|
||||
}
|
||||
// INCLUDE_EXTERNAL_MSPROJECT command only affects the workspace
|
||||
// so don't build a projectfile for it
|
||||
if ((l->second.GetType() != cmTarget::INSTALL_FILES)
|
||||
&& (l->second.GetType() != cmTarget::INSTALL_PROGRAMS)
|
||||
&& (strncmp(l->first.c_str(), "INCLUDE_EXTERNAL_MSPROJECT", 26) != 0))
|
||||
if (strncmp(l->first.c_str(), "INCLUDE_EXTERNAL_MSPROJECT", 26) != 0)
|
||||
{
|
||||
// check to see if the dsp is going into a sub-directory
|
||||
std::string::size_type pos = l->first.rfind('/');
|
||||
|
||||
Reference in New Issue
Block a user