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

« back to all changes in this revision

Viewing changes to Modules/Platform/UnixPaths.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:
 
1
 
 
2
#=============================================================================
 
3
# Copyright 2006-2009 Kitware, Inc.
 
4
#
 
5
# Distributed under the OSI-approved BSD License (the "License");
 
6
# see accompanying file Copyright.txt for details.
 
7
#
 
8
# This software is distributed WITHOUT ANY WARRANTY; without even the
 
9
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
10
# See the License for more information.
 
11
#=============================================================================
 
12
# (To distributed this file outside of CMake, substitute the full
 
13
#  License text for the above reference.)
 
14
 
 
15
# Block multiple inclusion because "CMakeCInformation.cmake" includes
 
16
# "Platform/${CMAKE_SYSTEM_NAME}" even though the generic module
 
17
# "CMakeSystemSpecificInformation.cmake" already included it.
 
18
# The extra inclusion is a work-around documented next to the include()
 
19
# call, so this can be removed when the work-around is removed.
 
20
IF(__UNIX_PATHS_INCLUDED)
 
21
  RETURN()
 
22
ENDIF()
 
23
SET(__UNIX_PATHS_INCLUDED 1)
 
24
 
1
25
SET(UNIX 1)
2
26
 
3
27
# also add the install directory of the running cmake to the search directories
9
33
# search types.
10
34
LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
11
35
  # Standard
12
 
  / /usr /usr/local
 
36
  /usr/local / /usr
13
37
 
14
38
  # CMake install location
15
39
  "${_CMAKE_INSTALL_DIR}"