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

« back to all changes in this revision

Viewing changes to Modules/CMakeCXXInformation.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
1
 
 
2
#=============================================================================
 
3
# Copyright 2004-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
 
2
15
# This file sets the basic flags for the C++ language in CMake.
3
16
# It also loads the available platform file for the system-compiler
4
17
# if it exists.
13
26
  SET(CMAKE_CXX_OUTPUT_EXTENSION .obj)
14
27
ENDIF(UNIX)
15
28
 
 
29
# Load compiler-specific information.
 
30
IF(CMAKE_CXX_COMPILER_ID)
 
31
  INCLUDE(Compiler/${CMAKE_CXX_COMPILER_ID}-CXX OPTIONAL)
 
32
ENDIF(CMAKE_CXX_COMPILER_ID)
 
33
 
16
34
SET(CMAKE_BASE_NAME)
17
35
GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_CXX_COMPILER} NAME_WE)
18
36
# since the gnu compiler has several names force g++
36
54
  INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_CXX_COMPILER_ID}-CXX OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
37
55
ENDIF(CMAKE_CXX_COMPILER_ID)
38
56
IF (NOT _INCLUDED_FILE)
39
 
  INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)
 
57
  INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL
 
58
          RESULT_VARIABLE _INCLUDED_FILE)
 
59
ENDIF (NOT _INCLUDED_FILE)
 
60
# We specify the compiler information in the system file for some
 
61
# platforms, but this language may not have been enabled when the file
 
62
# was first included.  Include it again to get the language info.
 
63
# Remove this when all compiler info is removed from system files.
 
64
IF (NOT _INCLUDED_FILE)
 
65
  INCLUDE(Platform/${CMAKE_SYSTEM_NAME} OPTIONAL)
40
66
ENDIF (NOT _INCLUDED_FILE)
41
67
 
42
68