summaryrefslogtreecommitdiff
path: root/Source/cmSourceGroupCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-07-28 14:43:04 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2003-07-28 14:43:04 -0400
commit3d27a6a39114aa97422fb3a431262a35a6dc113d (patch)
tree3a036b11b26d71d2be366214d5c959430b076ebe /Source/cmSourceGroupCommand.cxx
parentf7c9e258aee90eb372825d5ab89057935383e23b (diff)
downloadcmake-3d27a6a39114aa97422fb3a431262a35a6dc113d.tar.gz
ENH: put back old style call to SOURCE_GROUP, no need to break things for this
Diffstat (limited to 'Source/cmSourceGroupCommand.cxx')
-rw-r--r--Source/cmSourceGroupCommand.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/Source/cmSourceGroupCommand.cxx b/Source/cmSourceGroupCommand.cxx
index e8639464b1..131e86c5e2 100644
--- a/Source/cmSourceGroupCommand.cxx
+++ b/Source/cmSourceGroupCommand.cxx
@@ -37,20 +37,8 @@ bool cmSourceGroupCommand::InitialPass(std::vector<std::string> const& args)
// command is being invoked.
if(args.size() == 2 && args[1] != "FILES")
{
- const char* versionValue =
- m_Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
- if(atof(versionValue) > 1.6)
- {
- this->SetError("no longer accepts a two-argument form. Use the "
- "REGULAR_EXPRESSION argument form instead, or set "
- "CMAKE_BACKWARDS_COMPATIBILITY to 1.6 or less.\n");
- return false;
- }
- else
- {
- sg->SetGroupRegex(args[1].c_str());
- return true;
- }
+ sg->SetGroupRegex(args[1].c_str());
+ return true;
}
// Process arguments.