On 09/11/2012 05:09 PM, Robert Dailey wrote: > I don't see an exlusive or operator in CMake. Could I add one? Would > such a feature be accepted? > > Syntax would be: > > if( var1 XOR var2 )
Many languages like C, C++, python, lua, etc. do not offer logical XOR operators, only bitwise XOR. Unlike AND/OR/NOT the XOR operation cannot be used in short-circuit evaluation (CMake's if() command does not currently short-circuit, but it could.). -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
