diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-09 19:18:26 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-11 15:52:27 (GMT) |
commit | 3ad893b5c23566184bc78eafb1446c05bd39a643 (patch) | |
tree | 0c42e880abf5bb2fa3701ed1590b56a6ce17c4c9 /Modules/Compiler/AppleClang-CXX.cmake | |
parent | 98965fb12d0d07deb6d953624529f8b8151dce13 (diff) | |
download | CMake-3ad893b5c23566184bc78eafb1446c05bd39a643.zip CMake-3ad893b5c23566184bc78eafb1446c05bd39a643.tar.gz CMake-3ad893b5c23566184bc78eafb1446c05bd39a643.tar.bz2 |
Features: Record for historical Xcode clang versions.
Diffstat (limited to 'Modules/Compiler/AppleClang-CXX.cmake')
-rw-r--r-- | Modules/Compiler/AppleClang-CXX.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/Compiler/AppleClang-CXX.cmake b/Modules/Compiler/AppleClang-CXX.cmake index e56f55b..a508623 100644 --- a/Modules/Compiler/AppleClang-CXX.cmake +++ b/Modules/Compiler/AppleClang-CXX.cmake @@ -26,8 +26,11 @@ macro(cmake_record_cxx_compile_features) record_compiler_features(CXX "${std_version}" ${list}) endmacro() - if (UNIX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1) - _get_appleclang_features(${CMAKE_CXX14_STANDARD_COMPILE_OPTION} CMAKE_CXX14_COMPILE_FEATURES) + if (UNIX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.0) + set(_result 0) + if(CMAKE_CXX14_STANDARD_COMPILE_OPTION) + _get_appleclang_features(${CMAKE_CXX14_STANDARD_COMPILE_OPTION} CMAKE_CXX14_COMPILE_FEATURES) + endif() if (_result EQUAL 0) _get_appleclang_features(${CMAKE_CXX11_STANDARD_COMPILE_OPTION} CMAKE_CXX11_COMPILE_FEATURES) endif() |