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
--

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

Reply via email to