On 11/07/2012 10:06 AM, Stephen Kelly wrote:
> Brad King wrote:
>
>> On 11/07/2012 09:40 AM, Stephen Kelly wrote:
>>> Does the cmake regex system have a way to match word boundaries? I need
>>> to be able to match '-W\b' such that '-Wall' is not matched.
>>
>> No, but you can do
>>
>> if(NOT " ${CMAKE_C_FLAGS} " MATCHES " -W ")
>>
>> Note the space on the left side. That allows the right side
>> to match even at the beginning or end.
>
> Yes, but that won't work for the flags at the beginning and end.
Perhaps you should re-read my whole message more carefully ;)
-Brad
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers