[asterisk-scf-commits] asterisk-scf/release/cmake.git branch "ice-package" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Tue Jan 18 06:40:00 CST 2011
branch "ice-package" has been updated
via b7268f654a356f02882b6a74da3af83f0ee965fe (commit)
via d492663107b37d98034b85b5937690c3e729e539 (commit)
from 0d87aec41cd0184df2f383c0893a24e11691646d (commit)
Summary of changes:
modules/FindIce.cmake | 102 +++++++++++++++++---
.../FindPackageComponentHandleStandardArgs.cmake | 34 +++++++
2 files changed, 121 insertions(+), 15 deletions(-)
- Log -----------------------------------------------------------------
commit b7268f654a356f02882b6a74da3af83f0ee965fe
Author: Kevin P. Fleming <kpfleming at digium.com>
Date: Tue Jan 18 06:39:55 2011 -0600
Add copyright and license header.
diff --git a/modules/FindPackageComponentHandleStandardArgs.cmake b/modules/FindPackageComponentHandleStandardArgs.cmake
index d864014..bd95606 100644
--- a/modules/FindPackageComponentHandleStandardArgs.cmake
+++ b/modules/FindPackageComponentHandleStandardArgs.cmake
@@ -1,3 +1,37 @@
+#=============================================================================
+# Copyright 2007-2009 Kitware, Inc.
+# Copyright 2011, Digium, Inc.
+#
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+#
+# * Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# * The names of Kitware, Inc., the Insight Consortium, or the names of
+# any consortium members, or of any contributors, may not be used to
+# endorse or promote products derived from this software without
+# specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS ``AS IS''
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#=============================================================================
+#
# FIND_PACKAGE_COMPONENT_HANDLE_STANDARD_ARGS(NAME COMPONENT (DEFAULT_MSG|"Custom failure message") VAR1 ... )
# This macro is intended to be used in FindXXX.cmake modules files.
# It handles the REQUIRED and QUIET argument to FIND_PACKAGE().
commit d492663107b37d98034b85b5937690c3e729e539
Author: Kevin P. Fleming <kpfleming at digium.com>
Date: Tue Jan 18 06:34:26 2011 -0600
Add a copyright, license and documentation header to FindIce.cmake
diff --git a/modules/FindIce.cmake b/modules/FindIce.cmake
index a28b7ff..1b93fba 100644
--- a/modules/FindIce.cmake
+++ b/modules/FindIce.cmake
@@ -1,19 +1,91 @@
#
-# sets:
-# ICE_FOUND
-# ICE_DIR
-# ICE_INCLUDE_DIR
-# ICE_SLICE_DIR
-# ICE_CXX_FLAGS
-# ICE_VERSION
-# ICE_VERSION_MAJOR
-# ICE_VERSION_MINOR
-# ICE_VERSION_PATCH
-# for each component requested, sets (with <component> uppercased):
-# ICE_<component>_FOUND
-# ICE_<component>_LIBRARY
-# ICE_<component>_LIBRARY_DEBUG
-# ICE_<component>_LIBRARY_RELEASE
+# FindIce.cmake - a CMake module for using ZeroC Ice
+#
+# Copyright (C) 2010-2011, Digium, Inc.
+#
+# This program is free software, distributed under the terms of
+# the GNU General Public License Version 2.
+#
+# Usage:
+#
+# This module supports the standard find_package() syntax, including
+# REQUIRED, QUIET and EXACT. It *never* searches for Ice along the system
+# PATH or any other CMake-provided default paths; instead, it will only
+# search in predefined locations, which are:
+#
+# ENV{ICE_HOME} if the ICE_HOME environment variable is set,
+# only that location is checked
+# /opt/Ice-<version> on UNIX-type platforms, subdirectories
+# of /opt are checked
+# C:/Ice-<version> on Windows platforms, subdirectories of C: are
+# checked
+#
+# These are the standard locations for Ice installations performed by the
+# ZeroC Ice packages; if Ice is installed in a non-standard location, then
+# ICE_HOME should be set to indicate where it is located.
+#
+# Syntax:
+#
+# find_package(Ice <major>.<minor>[.<patch>] [...])
+#
+# On the first call to this module, a major and minor version number
+# *MUST* be provided; if they are provided on subsequent calls, they
+# are ignored. During the first call, the locations listed above are
+# checked to find the highest-numbered version of Ice installed that
+# is compatible with the requested major and minor versions, unless
+# EXACT is specified, in which case only the single version specified
+# will be found (if it is available). Note that not specifying a patch
+# version number means it defaults to '0' (zero), so specifying
+# "Ice 3.4 EXACT" would in fact look for Ice 3.4.0 and no other version.
+#
+# For any call to this module, one or more COMPONENTS can be specified,
+# (and REQUIRED can be used to indicate they are not optional); each
+# name specified is expected to be a library provided with Ice, and
+# suitable tests are performed to ensure that library is part of the
+# Ice installation that was found.
+#
+# Variables used by this module:
+#
+# Ice_DEBUG If this is set to any value, the module will emit
+# debugging messages as each step of its operations
+# are performed.
+#
+# Variables set by this module:
+#
+# ICE_FOUND Will be set if a compatible version of Ice was found
+#
+# ICE_DIR The top-level directory of the Ice installation
+#
+# ICE_INCLUDE_DIR The directory containing C++ include files
+#
+# ICE_SLICE_DIR The directory containing Slice files for the
+# libraries provided with Ice
+#
+# ICE_CXX_FLAGS Any compiler flags that should be used when compiling
+# code that uses Ice
+#
+# ICE_VERSION The Ice version (complete)
+# ICE_VERSION_MAJOR The Ice major version
+# ICE_VERSION_MINOR The Ice minor version
+# ICE_VERSION_PATCH The Ice patch version
+#
+# For each component requested, sets (with <component> uppercased):
+#
+# ICE_<component>_FOUND Will be set if the component (library)
+# was found
+#
+# ICE_<component>_LIBRARY The path to the library, possibly
+# including both optimized and debug
+# if they are available
+#
+# ICE_<component>_LIBRARY_DEBUG The path to the library, as a debug
+# build if it is available, otherwise as
+# an optimized build
+#
+# ICE_<component>_LIBRARY_RELEASE The path to the library, as an optimized
+# build if it is available, otherwise as
+# a debug build
+#
find_package(PackageHandleStandardArgs)
find_package(PackageComponentHandleStandardArgs)
-----------------------------------------------------------------------
--
asterisk-scf/release/cmake.git
More information about the asterisk-scf-commits
mailing list