[cmake-developers] target sources property

Brad King brad.king at kitware.com
Wed Jul 10 11:11:46 EDT 2013


On 07/10/2013 11:12 AM, Stephen Kelly wrote:
> Yes, but I guess it's also memory management. I can't return str.c_str() if 
> str is an automatic variable. I guess I can use the trick of creating a 
> static std::string and return that.

Oh, right.  I'd rather not expose that to projects that might try to
abuse SOURCES_INTERNAL for something.  Elsewhere IIRC we have C++
class member variables specifically for this purpose.

-Brad



More information about the cmake-developers mailing list