Best/Shortest way to join a list in CMake

前端 未结 4 562
温柔的废话
温柔的废话 2021-02-04 06:07

What is the best way to join a list in CMake into a string?

By joining I mean convert SET(somelist \"a\" \"b\" \"c\\;c\") to \"a:b:c;c\" where the glue string (\":\") i

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-04 06:18

    CMake 3.12 is poised to finally add this upstream:

    https://github.com/Kitware/CMake/commit/a58158727be4585f9fd71449e9cc9e801c59a009

    https://github.com/Kitware/CMake/commit/689eeb67cb87a9ed1d91a4971806488d00e68f42

提交回复
热议问题