On Tue, 2019-06-04 at 16:39 +0200, Steven Truppe wrote: > Hi everyone, > > > i had the same question a few days ago but can't rember the command > (and > can't find it in the cods): > > I have a regular expression like "WITH_LIB${lib}_EXAMPLE_([A-Za-z]+)" > and i want the get the content of the found variables in the (), the > command i used stored them if MATCH_XYZ but i can't exactly rember > =(. > > > best regards!
CMAKE_MATCH_<n> https://cmake.org/cmake/help/v3.14/variable/CMAKE_MATCH_n.html Kyle -- 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: https://cmake.org/mailman/listinfo/cmake