[CMake] General question about regex
Kornel Benko
kornel at lyx.org
Tue Jun 4 12:47:50 EDT 2019
Am Dienstag, 4. Juni 2019, 18:10:19 CEST schrieb Steven Truppe:
> Hello again,
>
>
> i've the following variable defined:
>
> set(WITH_LIB_GLAD_EXAMPLE_BASIC 1)
>
> And the if the line
>
>
> foreach(_var VARIABLES)
>
> if(_var MATCHES "WITH_LIB_GLAD_EXAMPLE_([A-Za-z]+)")
>
> message(STATUS "Found a match")
>
> endforeach()
>
>
> I never get the message "Found match", what am i doing wrong here ??
>
>
What about the attached?
Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x.cmake
Type: text/x-cmake
Size: 279 bytes
Desc: not available
URL: <https://cmake.org/pipermail/cmake/attachments/20190604/f261ce18/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <https://cmake.org/pipermail/cmake/attachments/20190604/f261ce18/attachment.sig>
More information about the CMake
mailing list