Brad King wrote: > On 12/18/2012 11:49 AM, Stephen Kelly wrote: >> Brad King wrote: >>> The cmPropertyMap/cmProperty infrastructure could potentially store >>> structures with the string values plus meta-data instead of just the >>> strings as now. >> >> That sounds more complex to me. Would the possible meta-data be defined >> as a c++ struct? What would it contain? > > Perhaps something like > > + struct IncludeDirectoriesEntry { > + > IncludeDirectoriesEntry(cmsys::auto_ptr<cmCompiledGeneratorExpression> > cge) > + : ge(cge) > + {} > + const cmsys::auto_ptr<cmCompiledGeneratorExpression> ge; > + }; > + std::vector<IncludeDirectoriesEntry*> IncludeDirectoriesEntries; > > ? If the cmProperty API were virtual then a property definition could > specify the subclass used to represent the property. One of the options > could be a vector of generator expressions.
Can you think of what another option might be? Otherwise it's hard to generalize the interface. Thanks, Steve. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers