Sfoglia il codice sorgente

HPCC-12658 Enable c++11 support by default

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 9 anni fa
parent
commit
c5a9476889
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      cmake_modules/commonSetup.cmake

+ 1 - 0
cmake_modules/commonSetup.cmake

@@ -260,6 +260,7 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "")
           SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wparentheses")
         endif ()
       endif ()
+      SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
       if (GENERATE_COVERAGE_INFO)
         message ("Build system with coverage.")
         SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")