summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFilesCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSourceFilesCommand.cxx')
-rw-r--r--Source/cmSourceFilesCommand.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSourceFilesCommand.cxx b/Source/cmSourceFilesCommand.cxx
index 2740833..0024f9e 100644
--- a/Source/cmSourceFilesCommand.cxx
+++ b/Source/cmSourceFilesCommand.cxx
@@ -19,6 +19,14 @@
// cmSourceFilesCommand
bool cmSourceFilesCommand::InitialPass(std::vector<std::string> const& argsIn)
{
+ const char* versionValue
+ = m_Makefile->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION");
+ if (versionValue && atof(versionValue) > 1.2)
+ {
+ this->SetError("The SOURCE_FILES command has been deprecated in CMake version 1.4. You should use the SET command instead.\n");
+ return false;
+ }
+
if(argsIn.size() < 1 )
{
this->SetError("called with incorrect number of arguments");