diff options
author | John Wiegley <johnw@newartisans.com> | 2014-05-07 20:49:45 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2014-05-07 20:49:45 +0000 |
commit | 1aa0e03a9e7f9f1a51395a60fc1336bea3ca2aa9 (patch) | |
tree | 0e688725083f7be4610ec0a193cceadb05b1eb8d /src/CMakeLists.txt | |
parent | 73caafa2c540384f19669567ed95b598fcf42463 (diff) | |
download | fork-ledger-1aa0e03a9e7f9f1a51395a60fc1336bea3ca2aa9.tar.gz fork-ledger-1aa0e03a9e7f9f1a51395a60fc1336bea3ca2aa9.tar.bz2 fork-ledger-1aa0e03a9e7f9f1a51395a60fc1336bea3ca2aa9.zip |
Fix build for building with g++ 4.8
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e8b2af53..9752b052 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -167,6 +167,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") if(BUILD_LIBRARY) list(APPEND _args ${CMAKE_SHARED_LIBRARY_CXX_FLAGS}) endif() + list(APPEND _args "-std=c++11 ") list(APPEND _args "-x c++-header " ${_inc}) list(APPEND _args -c ${_header_filename} -o ${_pch_filename}) @@ -222,6 +223,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") list(APPEND _args ${CMAKE_SHARED_LIBRARY_CXX_FLAGS}) endif() list(APPEND _args ${GXX_WARNING_FLAGS}) + list(APPEND _args "-std=c++11 ") list(APPEND _args "-x c++-header " ${_inc}) list(APPEND _args -c ${_header_filename} -o ${_gch_filename}) |