diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-09 00:23:07 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-09 00:23:07 +0000 |
commit | c5206feae1605248e3a91202b85cdfe60591072a (patch) | |
tree | 7abbc9a89ef151069b6d4db24aa8c36cecf12101 /CMakeLists.txt | |
parent | c1845dd934457043742b173ec8d38ccda215577d (diff) |
Use the old -std=c++0x flag for compatibility with pre-2011 versions of GCC.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@152355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c6409249f..2c92ea693 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,12 +65,12 @@ endif() # # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") include(CheckCXXCompilerFlag) -check_cxx_compiler_flag("-std=c++11" SUPPORTS_CXX11_FLAG) +check_cxx_compiler_flag("-std=c++0x" SUPPORTS_CXX11_FLAG) if( SUPPORTS_CXX11_FLAG ) - message(STATUS "Building with -std=c++11") - set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}") + message(STATUS "Building with -std=c++0x") + set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}") else( SUPPORTS_CXX11_FLAG ) - message(WARNING "-std=c++11 not supported.") + message(WARNING "-std=c++0x not supported.") endif() |