Robert Dailey wrote:

> if( var1 AND var2 )
> message( "Feature is ON" )
> elseif( var1 XOR var2 )
> message( SEND_ERROR "Both variables must be specified" )
> endif()

Can't you do this? : 

if( var1 AND var2 )
    message( "Feature is ON" )
elseif( var1 OR var2 )
    message( SEND_ERROR "Both variables must be specified" )
else()
    message( "Feature is OFF" )
endif()

You don't need XOR if you've just used AND.

Thanks,

Steve.


--

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

Reply via email to