CMAKE_MATCH_n.rst 436 B

12345678910
  1. CMAKE_MATCH_<n>
  2. ---------------
  3. Capture group ``<n>`` matched by the last regular expression, for groups
  4. 0 through 9. Group 0 is the entire match. Groups 1 through 9 are the
  5. subexpressions captured by ``()`` syntax.
  6. When a regular expression match is used, CMake fills in ``CMAKE_MATCH_<n>``
  7. variables with the match contents. The :variable:`CMAKE_MATCH_COUNT`
  8. variable holds the number of match expressions when these are filled.