-
Notifications
You must be signed in to change notification settings - Fork 0
/
uncategorized.cmake
32 lines (29 loc) · 1.14 KB
/
uncategorized.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#=============================================================================
# mcl - The Missing CMake Library
# Copyright 2013 John Lamp
#
# Distributed under the OSI-approved Modified BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
#
# This file is for small random functions that don't yet have a home. It's a
# place for little things that are needed by other modules. Add them here and
# the reorganize them later. At the time of any release *NO* file should include
# this one and this one should be empty, save for these comments.
#
# mcl_math(<expression>...)
#
# e.g. mcl_math(MAX <outputVariable> <number>...)
function(mcl_math_max outputVariable)
set(max ${ARGV1})
foreach (num ${ARGN})
if (${num} GREATER ${max})
set(max ${num})
endif()
endforeach()
set(${outputVariable} ${max} PARENT_SCOPE)
endfunction()