Warning, /education/kstars/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 # 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 0013 FOREACH (_current_VAR ${ARGN}) 0014 0015 IF(${FOUND_VAR}) 0016 0017 SET(${_current_VAR} 1) 0018 0019 ELSE(${FOUND_VAR}) 0020 0021 SET(${_current_VAR} 0) 0022 0023 ENDIF(${FOUND_VAR}) 0024 0025 ENDFOREACH(_current_VAR) 0026 0027 ENDMACRO(MACRO_BOOL_TO_01)