[CMake] Case-insensitive string compare
Robert Dailey
rcdailey.lists at gmail.com
Thu Jun 7 18:37:32 EDT 2012
How can I perform a case-insensitive string comparison? I basically need to
do this:
set( file "Makefile" )
if( file STREQUAL "makefile" )
....
endif()
The above condition should PASS, since I want to ignore case, but as of
right now it seems STREQUAL is case-sensitive. I need to do this without
mutating either operand (i.e. i can't use string( TOLOWER ) )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120607/7406e2cc/attachment.htm>
More information about the CMake
mailing list