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

« back to all changes in this revision

Viewing changes to CompileFlags.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
# CMake - Cross Platform Makefile Generator
 
3
# Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
 
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
 
1
13
#-----------------------------------------------------------------------------
2
14
# set some special flags for different compilers
3
15
#
9
21
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
10
22
INCLUDE (${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityCXX.cmake)
11
23
 
 
24
IF(WIN32 AND "${CMAKE_C_COMPILER_ID}" MATCHES "^(Intel)$")
 
25
  SET(_INTEL_WINDOWS 1)
 
26
ENDIF()
 
27
 
12
28
# Disable deprecation warnings for standard C functions.
13
 
IF(MSVC80 OR MSVC90)
 
29
# really only needed for newer versions of VS, but should
 
30
# not hurt other versions, and this will work into the 
 
31
# future
 
32
IF(MSVC OR _INTEL_WINDOWS)
14
33
  ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
15
 
ENDIF(MSVC80 OR MSVC90)
 
34
ELSE()
 
35
ENDIF()
16
36
 
17
37
#silence duplicate symbol warnings on AIX
18
38
IF(CMAKE_SYSTEM MATCHES "AIX.*")