[CMake] Index CMake strings

Petr Kmoch petr.kmoch at gmail.com
Thu Mar 13 05:56:58 EDT 2014


Hi Micha,

the CMake equivalent code would be:

  string(SUBSTRING "${Str}" 3 1 c)

Petr


On Thu, Mar 13, 2014 at 10:27 AM, Micha Renner <Micha.Renner at t-online.de>wrote:

> Hallo,
>
> is it possible to index CMake strings.
> In C it would something like this:
>
> char c = Str[3];
>
> Micha
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140313/2205d4a4/attachment.html>


More information about the CMake mailing list