summaryrefslogtreecommitdiff
path: root/Utilities/std
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-06-25 14:23:25 +0200
committerMarc Chevrier <marc.chevrier@gmail.com>2020-07-09 15:24:43 +0200
commite5798126fcfd08c7ca0f0f8d1fb627b04f655198 (patch)
tree59419db7f0c352ac662e20506acec74ee627be5c /Utilities/std
parent4408f34cfe5edc76faa1ea974a0225316cfbc702 (diff)
downloadcmake-e5798126fcfd08c7ca0f0f8d1fb627b04f655198.tar.gz
STL Support: introduce dedicated configuration file
Diffstat (limited to 'Utilities/std')
-rw-r--r--Utilities/std/cm/memory3
-rw-r--r--Utilities/std/cmSTL.hxx.in9
2 files changed, 12 insertions, 0 deletions
diff --git a/Utilities/std/cm/memory b/Utilities/std/cm/memory
index dd0f8226d1..5611f6bb35 100644
--- a/Utilities/std/cm/memory
+++ b/Utilities/std/cm/memory
@@ -6,7 +6,10 @@
#ifndef cm_memory
#define cm_memory
+#include "cmSTL.hxx" // IWYU pragma: keep
+
#include <memory> // IWYU pragma: export
+
#if !defined(CMake_HAVE_CXX_MAKE_UNIQUE)
# include <cstddef>
# include <type_traits>
diff --git a/Utilities/std/cmSTL.hxx.in b/Utilities/std/cmSTL.hxx.in
new file mode 100644
index 0000000000..28fe226aaa
--- /dev/null
+++ b/Utilities/std/cmSTL.hxx.in
@@ -0,0 +1,9 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing for details. */
+#ifndef cmSTL_hxx
+#define cmSTL_hxx
+
+/* Whether CMake is using its own STL implementation. */
+#cmakedefine CMake_HAVE_CXX_MAKE_UNIQUE
+
+#endif