On Wed, Jun 30, 2010 at 9:13 AM, Marcel Loose <[email protected]> wrote:
> I think I could live with using an empty string and then use > 'if(VAR MATCHES "^$")', instead of 'if(DEFINED VAR)'. > You probably know this, but in the vast majority of cases you could just use 'if(VAR)'. That will be true as long as VAR is not undefined, 0, "", N, NO, OFF, FALSE, NOTFOUND, or <variable>-NOTFOUND. If you really need to only match empty string, then probably 'if(VAR STREQUAL "")' would be a little easier to read and type. Ceej aka Chris Hillery
_______________________________________________ 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://www.cmake.org/mailman/listinfo/cmake
