Project

General

Profile

Feature #1188 ยป cxx11.diff

Patch - T Modes, 31 May 2016 16:03

View differences:

CMakeLists.txt (Arbeitskopie)
18 18
endif()
19 19
##
20 20

  
21
CMAKE_MINIMUM_REQUIRED( VERSION 2.8.11 )
21
CMAKE_MINIMUM_REQUIRED( VERSION 3.1 )
22 22
PROJECT( exiv2 )
23 23

  
24 24
if( POLICY CMP0042 )
......
61 61
    OPTION( EXIV2_ENABLE_SSH           "USE Libssh for SshIo"                              ON  )
62 62

  
63 63
ENDIF()
64
OPTION( EXIV2_ENABLE_CXX11         "Build in C++11 mode of compiler"                       OFF )
64 65

  
66
IF(EXIV2_ENABLE_CXX11)
67
  SET(CMAKE_CXX_STANDARD 11)
68
  SET(CMAKE_CXX_STANDARD_REQUIRED ON)
69
ENDIF()
70

  
65 71
# set include path for FindXXX.cmake files
66 72
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/config/")
67 73

  
config/CMakeChecks.txt (Arbeitskopie)
339 339
IF (WIN32)
340 340
OptionOutput( "Unicode paths (wstring):            " EXIV2_ENABLE_WIN_UNICODE        )
341 341
ENDIF()
342
OptionOutput( "Building in C++11 mode:             " EXIV2_ENABLE_CXX11              )
342 343
MESSAGE( STATUS "------------------------------------------------------------------" )
    (1-1/1)