Warning, /office/kexi/cmake/modules/MacroBoolTo01.cmake is written in an unsupported language. File is not indexed.
0001 # MACRO_BOOL_TO_01( VAR RESULT0 ... RESULTN )
0002 # This macro evaluates its first argument
0003 # and sets all the given vaiables either to 0 or 1
0004 # depending on the value of the first one
0005
0006 # Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
0007 #
0008 # Redistribution and use is allowed according to the terms of the BSD license.
0009 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0010
0011
0012 MACRO(MACRO_BOOL_TO_01 FOUND_VAR )
0013 FOREACH (_current_VAR ${ARGN})
0014 IF(${FOUND_VAR})
0015 SET(${_current_VAR} 1)
0016 ELSE(${FOUND_VAR})
0017 SET(${_current_VAR} 0)
0018 ENDIF(${FOUND_VAR})
0019 ENDFOREACH(_current_VAR)
0020 ENDMACRO(MACRO_BOOL_TO_01)