summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/GNU-CXX.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2017-02-08 17:18:17 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2017-02-08 20:04:31 (GMT)
commite2ee0971474ce92766f77d77025319ef575aa303 (patch)
tree1d70ab9cae956b48a099125df1852876bbac1218 /Modules/Compiler/GNU-CXX.cmake
parent787c5f37dde5982dea71b34339b9f546907bb368 (diff)
downloadCMake-e2ee0971474ce92766f77d77025319ef575aa303.zip
CMake-e2ee0971474ce92766f77d77025319ef575aa303.tar.gz
CMake-e2ee0971474ce92766f77d77025319ef575aa303.tar.bz2
g++ knows about C++98 selection flags since at least 3.4
https://gcc.gnu.org/onlinedocs/gcc-3.4.0/gcc/C-Dialect-Options.html#C-Dialect-Options
Diffstat (limited to 'Modules/Compiler/GNU-CXX.cmake')
-rw-r--r--Modules/Compiler/GNU-CXX.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/Compiler/GNU-CXX.cmake b/Modules/Compiler/GNU-CXX.cmake
index c007c98..2499d2f 100644
--- a/Modules/Compiler/GNU-CXX.cmake
+++ b/Modules/Compiler/GNU-CXX.cmake
@@ -11,8 +11,7 @@ else()
endif()
endif()
-if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4)
- # Supported since 4.3
+if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.4)
set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "-std=c++98")
set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION "-std=gnu++98")
endif()