diff options
author | Brad King <brad.king@kitware.com> | 2002-10-23 22:03:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-10-23 22:03:27 (GMT) |
commit | 1f6a3c67b1cc225f9f6873278c117820a2dee3b2 (patch) | |
tree | ec8ee490a7a800b5617f92ce56bb4a9124668ad3 /Source/cmSourceFilesCommand.cxx | |
parent | 48b74fd034c3acc27b96957d552715697156655c (diff) | |
download | CMake-1f6a3c67b1cc225f9f6873278c117820a2dee3b2.zip CMake-1f6a3c67b1cc225f9f6873278c117820a2dee3b2.tar.gz CMake-1f6a3c67b1cc225f9f6873278c117820a2dee3b2.tar.bz2 |
ENH: Added reference to Copyright.txt. Removed old reference to ITK copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
Diffstat (limited to 'Source/cmSourceFilesCommand.cxx')
-rw-r--r-- | Source/cmSourceFilesCommand.cxx | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/Source/cmSourceFilesCommand.cxx b/Source/cmSourceFilesCommand.cxx index 60d81b7..8fe4e1c 100644 --- a/Source/cmSourceFilesCommand.cxx +++ b/Source/cmSourceFilesCommand.cxx @@ -1,13 +1,13 @@ /*========================================================================= - Program: Insight Segmentation & Registration Toolkit + Program: CMake - Cross-Platform Makefile Generator Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ - Copyright (c) 2002 Insight Consortium. All rights reserved. - See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. + Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved. + See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR @@ -81,38 +81,38 @@ bool cmSourceFilesCommand::InitialPass(std::vector<std::string> const& argsIn) std::string name_no_ext = cmSystemTools::GetFilenameName(copy.c_str()); name_no_ext = name_no_ext.substr(0, name_no_ext.length()-ext.length()); if ( ext.length() && ext[0] == '.' ) - { - ext = ext.substr(1); - } + { + ext = ext.substr(1); + } if((path.size() && path[0] == '/') || - (path.size() > 1 && path[1] == ':')) - { - file.SetName(name_no_ext.c_str(), path.c_str(), ext.c_str(), false); - } + (path.size() > 1 && path[1] == ':')) + { + file.SetName(name_no_ext.c_str(), path.c_str(), ext.c_str(), false); + } else - { - file.SetName(name_no_ext.c_str(), + { + file.SetName(name_no_ext.c_str(), m_Makefile->GetCurrentOutputDirectory(), - ext.c_str(), false); - } + ext.c_str(), false); + } } else { // if this is a full path then if((path.size() && path[0] == '/') || - (path.size() > 1 && path[1] == ':')) - { - file.SetName(cmSystemTools::GetFilenameName(copy.c_str()).c_str(), - path.c_str(), - m_Makefile->GetSourceExtensions(), - m_Makefile->GetHeaderExtensions()); - } + (path.size() > 1 && path[1] == ':')) + { + file.SetName(cmSystemTools::GetFilenameName(copy.c_str()).c_str(), + path.c_str(), + m_Makefile->GetSourceExtensions(), + m_Makefile->GetHeaderExtensions()); + } else - { - file.SetName(copy.c_str(), m_Makefile->GetCurrentDirectory(), - m_Makefile->GetSourceExtensions(), - m_Makefile->GetHeaderExtensions()); - } + { + file.SetName(copy.c_str(), m_Makefile->GetCurrentDirectory(), + m_Makefile->GetSourceExtensions(), + m_Makefile->GetHeaderExtensions()); + } } m_Makefile->AddSource(file); if (sourceListValue.size() > 0) |