diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-12-11 15:26:10 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-12-11 15:26:10 (GMT) |
commit | 179579bed7aa3e1d6894e0f8399e9a53ca450112 (patch) | |
tree | 1cae7421324a41a1ee94cc959da47ae4cf9396f4 /Source/cmSetPropertiesCommand.cxx | |
parent | 09029e9cd864be132bb8b381635d95764f1209d4 (diff) | |
download | CMake-179579bed7aa3e1d6894e0f8399e9a53ca450112.zip CMake-179579bed7aa3e1d6894e0f8399e9a53ca450112.tar.gz CMake-179579bed7aa3e1d6894e0f8399e9a53ca450112.tar.bz2 |
ENH: improve SetProperties and fix a couple warnings
Diffstat (limited to 'Source/cmSetPropertiesCommand.cxx')
-rw-r--r-- | Source/cmSetPropertiesCommand.cxx | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/Source/cmSetPropertiesCommand.cxx b/Source/cmSetPropertiesCommand.cxx index 8024c6a..8ac03e7 100644 --- a/Source/cmSetPropertiesCommand.cxx +++ b/Source/cmSetPropertiesCommand.cxx @@ -17,6 +17,7 @@ #include "cmSetPropertiesCommand.h" #include "cmSetTargetPropertiesCommand.h" #include "cmSetTestsPropertiesCommand.h" +#include "cmSetSourceFilesPropertiesCommand.h" // cmSetPropertiesCommand bool cmSetPropertiesCommand::InitialPass( @@ -93,6 +94,11 @@ bool cmSetPropertiesCommand::InitialPass( scope = cmProperty::TEST; scopeName = args[1].c_str(); } + else if (args[0] == "SOURCE_FILE" && numFiles == 2) + { + scope = cmProperty::SOURCE_FILE; + scopeName = args[1].c_str(); + } else { this->SetError("called with illegal arguments."); @@ -151,7 +157,19 @@ bool cmSetPropertiesCommand::InitialPass( } break; case cmProperty::SOURCE_FILE: - // not implemented yet + { + std::string errors; + bool ret = cmSetSourceFilesPropertiesCommand:: + RunCommand(this->Makefile, + args.begin()+1, args.begin()+2, + args.begin() + 2, args.end(), + errors); + if (!ret) + { + this->SetError(errors.c_str()); + } + return ret; + } break; } |