~unity-api-team/thumbnailer/trusty

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-02-18 23:01:31 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: package-import@ubuntu.com-20140218230131-8bxr5ucdqo8wums2
Tags: upstream-1.0+14.04.20140218
ImportĀ upstreamĀ versionĀ 1.0+14.04.20140218

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
project(thumbnailer CXX)
2
 
cmake_minimum_required(VERSION 2.8.9)
 
2
cmake_minimum_required(VERSION 2.8.7)
 
3
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra")
 
4
 
 
5
include(CheckCXXCompilerFlag)
 
6
check_cxx_compiler_flag(-std=c++11 HAS_C11)
 
7
# Precise's GCC is too old to have -std=c++11
 
8
if(HAS_C11)
3
9
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
4
 
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra")
 
10
else()
 
11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Dfinal=")
 
12
endif()
5
13
 
6
14
set(SO_VERSION_MAJOR "1")
7
15
set(SO_VERSION_MINOR "0")