[CMake] Autotools conversion: case statement

Eric Noulard eric.noulard at gmail.com
Thu Dec 17 09:55:06 EST 2009


2009/12/17 Nicola Brisotto <nicolabrisotto at gmail.com>:
> Hello,
> I've an autotools script to convert to cmake. It has a lot of long case
> statement. Any tips to easily convert this statement?
> Here an example:
> case "$THREADS" in

I would try a set of

if(string MATCHES regex)

endif(string MATCHES regex)

see
cmake --help-command if

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list