diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-22 22:16:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-27 14:37:40 (GMT) |
commit | ea5477e43de4660343897e4669bc5809dc4ddabe (patch) | |
tree | a368c8573d3b2c24b713e059e87fa1895604eb39 /Source/cmGlobalGenerator.h | |
parent | 68bb74d9e651fd44ddeeb81caa59096dbf1f0605 (diff) | |
download | CMake-ea5477e43de4660343897e4669bc5809dc4ddabe.zip CMake-ea5477e43de4660343897e4669bc5809dc4ddabe.tar.gz CMake-ea5477e43de4660343897e4669bc5809dc4ddabe.tar.bz2 |
Make C++ feature checks extensible
Turn the feature check for cxx11_unordered_map into a function such that
we can use it for other features as well. Drop the 11 suffix, as we may
want to check features from other standards.
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r-- | Source/cmGlobalGenerator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h index 68ff042..789e515 100644 --- a/Source/cmGlobalGenerator.h +++ b/Source/cmGlobalGenerator.h @@ -25,7 +25,7 @@ #if defined(CMAKE_BUILD_WITH_CMAKE) #include "cmFileLockPool.h" -#ifdef CMake_HAVE_CXX11_UNORDERED_MAP +#ifdef CMake_HAVE_CXX_UNORDERED_MAP #include <unordered_map> #else #include <cmsys/hash_map.hxx> @@ -433,7 +433,7 @@ protected: private: #if defined(CMAKE_BUILD_WITH_CMAKE) -#ifdef CMake_HAVE_CXX11_UNORDERED_MAP +#ifdef CMake_HAVE_CXX_UNORDERED_MAP typedef std::unordered_map<std::string, cmTarget*> TargetMap; typedef std::unordered_map<std::string, cmGeneratorTarget*> GeneratorTargetMap; |