Warning, /graphics/krita/cmake/kde_macro/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 variables either to 0 or 1 0004 # depending on the value of the first one 0005 0006 # SPDX-FileCopyrightText: 2006 Alexander Neundorf <neundorf@kde.org> 0007 # 0008 # SPDX-License-Identifier: BSD-3-Clause 0009 # 0010 0011 MACRO(MACRO_BOOL_TO_01 FOUND_VAR ) 0012 FOREACH (_current_VAR ${ARGN}) 0013 IF(${FOUND_VAR}) 0014 SET(${_current_VAR} 1) 0015 ELSE(${FOUND_VAR}) 0016 SET(${_current_VAR} 0) 0017 ENDIF(${FOUND_VAR}) 0018 ENDFOREACH(_current_VAR) 0019 ENDMACRO(MACRO_BOOL_TO_01)