~ubuntu-branches/ubuntu/lucid/cmake/lucid

« back to all changes in this revision

Viewing changes to Modules/CheckLibraryExists.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2009-12-16 11:11:54 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091216111154-6accvv6yq86h2hkc
Tags: 2.8.0-5ubuntu1
* Merge from debian testing (LP: #497349). Remaining changes:
  - Keep the Replaces: on cmake-data to cover the Kubuntu version from
    Jaunty in case someone decides to do an (unsupported) Jaunty->Lucid
    upgrade.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
14
14
#  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
15
15
 
 
16
#=============================================================================
 
17
# Copyright 2002-2009 Kitware, Inc.
 
18
#
 
19
# Distributed under the OSI-approved BSD License (the "License");
 
20
# see accompanying file Copyright.txt for details.
 
21
#
 
22
# This software is distributed WITHOUT ANY WARRANTY; without even the
 
23
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
24
# See the License for more information.
 
25
#=============================================================================
 
26
# (To distributed this file outside of CMake, substitute the full
 
27
#  License text for the above reference.)
 
28
 
16
29
MACRO(CHECK_LIBRARY_EXISTS LIBRARY FUNCTION LOCATION VARIABLE)
17
30
  IF("${VARIABLE}" MATCHES "^${VARIABLE}$")
18
31
    SET(MACRO_CHECK_LIBRARY_EXISTS_DEFINITION