[cmake-commits] martink committed cmTestCommand.c 1.21 1.22
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Dec 7 09:44:48 EST 2006
Update of /cvsroot/CMake/CMake/Tests/LoadCommand/CMakeCommands
In directory public:/mounts/ram/cvs-serv17137/Tests/LoadCommand/CMakeCommands
Modified Files:
cmTestCommand.c
Log Message:
ENH: make properties a bit more formal with documentation and chaining
Index: cmTestCommand.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/LoadCommand/CMakeCommands/cmTestCommand.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- cmTestCommand.c 26 Jul 2006 13:11:04 -0000 1.21
+++ cmTestCommand.c 7 Dec 2006 14:44:46 -0000 1.22
@@ -99,18 +99,24 @@
}
info->CAPI->AddDefineFlag(mf, "-DADDED_DEFINITION");
- source_file = info->CAPI->CreateSourceFile();
+ source_file = info->CAPI->CreateNewSourceFile(mf);
cstr = info->CAPI->SourceFileGetSourceName(source_file);
sprintf(buffer, "Shold be empty (source file name): [%s]", cstr);
info->CAPI->DisplaySatus(mf, buffer);
cstr = info->CAPI->SourceFileGetFullPath(source_file);
- sprintf(buffer, "Shold be empty (source file full path): [%s]", cstr);
+ sprintf(buffer, "Should be empty (source file full path): [%s]", cstr);
info->CAPI->DisplaySatus(mf, buffer);
+ info->CAPI->DefineSourceFileProperty(mf,"SOME_PROPERTY","unused old prop",
+ "This property is no longer used",
+ 0);
if ( info->CAPI->SourceFileGetPropertyAsBool(source_file, "SOME_PROPERTY") )
{
info->CAPI->SetError(mf, "Property SOME_PROPERTY should not be defined");
return 0;
}
+ info->CAPI->DefineSourceFileProperty(mf,"SOME_PROPERTY2","nice prop",
+ "This property is for testing.",
+ 0);
info->CAPI->SourceFileSetProperty(source_file, "SOME_PROPERTY2", "HERE");
cstr = info->CAPI->SourceFileGetProperty(source_file, "ABSTRACT");
sprintf(buffer, "Should be 0 (source file abstract property): [%p]", cstr);
More information about the Cmake-commits
mailing list