From: Maintenance team (INV) Date: Thu, 29 Oct 2015 18:39:23 +0000 (+0300) Subject: Synchronize adm files X-Git-Tag: V8_0_pre X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=91bd13eef6e6370e10d6b6de8082fe287fa1417c;p=tools%2Fdocumentation.git Synchronize adm files --- diff --git a/CMakeModules/SalomeSetupPlatform.cmake b/CMakeModules/SalomeSetupPlatform.cmake index 1548dae..6d8fbf1 100644 --- a/CMakeModules/SalomeSetupPlatform.cmake +++ b/CMakeModules/SalomeSetupPlatform.cmake @@ -165,3 +165,17 @@ IF(NOT WIN32) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage") ENDIF() ENDIF() + +# C++11 support +INCLUDE(CheckCXXCompilerFlag) +CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) +CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X) +IF(COMPILER_SUPPORTS_CXX11) + MESSAGE(STATUS "Enable C++11 support") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") +ELSEIF(COMPILER_SUPPORTS_CXX0X) + MESSAGE(STATUS "Enable C++0x support") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") +ELSE() + MESSAGE(WARNING "Compiler ${CMAKE_CXX_COMPILER} has no C++11 support.") +ENDIF()