summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-06-22 22:29:47 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-27 14:37:40 (GMT)
commit09aa2c94186081267753dedb50acb102717a6577 (patch)
treec977768b01f2955eb66fd5a58a58a61a82f57ace /Source/cmTarget.cxx
parentea5477e43de4660343897e4669bc5809dc4ddabe (diff)
downloadCMake-09aa2c94186081267753dedb50acb102717a6577.zip
CMake-09aa2c94186081267753dedb50acb102717a6577.tar.gz
CMake-09aa2c94186081267753dedb50acb102717a6577.tar.bz2
Use <unordered_set> where available
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 4386080..5e5ed2b 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -27,7 +27,11 @@
#include <map>
#include <set>
#include <stdlib.h> // required for atof
-#if defined(CMAKE_BUILD_WITH_CMAKE)
+
+#if defined(CMake_HAVE_CXX_UNORDERED_SET)
+#include <unordered_set>
+#define UNORDERED_SET std::unordered_set
+#elif defined(CMAKE_BUILD_WITH_CMAKE)
#include <cmsys/hash_set.hxx>
#define UNORDERED_SET cmsys::hash_set
#else