mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
STL Support: introduce dedicated configuration file
This commit is contained in:
@@ -20,6 +20,8 @@ SortUsingDeclarations: false
|
|||||||
SpaceAfterTemplateKeyword: true
|
SpaceAfterTemplateKeyword: true
|
||||||
IncludeBlocks: Regroup
|
IncludeBlocks: Regroup
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
|
- Regex: '^[<"]cmSTL\.hxx'
|
||||||
|
Priority: -2
|
||||||
- Regex: '^[<"]cmConfigure\.h'
|
- Regex: '^[<"]cmConfigure\.h'
|
||||||
Priority: -1
|
Priority: -1
|
||||||
- Regex: '^<queue>'
|
- Regex: '^<queue>'
|
||||||
|
@@ -108,6 +108,11 @@ if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Inform STL library header wrappers whether to use system versions.
|
||||||
|
configure_file(${CMake_SOURCE_DIR}/Utilities/std/cmSTL.hxx.in
|
||||||
|
${CMake_BINARY_DIR}/Utilities/cmSTL.hxx
|
||||||
|
@ONLY)
|
||||||
|
|
||||||
# set the internal encoding of CMake to UTF-8
|
# set the internal encoding of CMake to UTF-8
|
||||||
set(KWSYS_ENCODING_DEFAULT_CODEPAGE CP_UTF8)
|
set(KWSYS_ENCODING_DEFAULT_CODEPAGE CP_UTF8)
|
||||||
|
|
||||||
|
@@ -19,7 +19,6 @@
|
|||||||
#cmakedefine HAVE_UNSETENV
|
#cmakedefine HAVE_UNSETENV
|
||||||
#cmakedefine CMAKE_USE_ELF_PARSER
|
#cmakedefine CMAKE_USE_ELF_PARSER
|
||||||
#cmakedefine CMAKE_USE_MACH_PARSER
|
#cmakedefine CMAKE_USE_MACH_PARSER
|
||||||
#cmakedefine CMake_HAVE_CXX_MAKE_UNIQUE
|
|
||||||
#define CMake_DEFAULT_RECURSION_LIMIT @CMake_DEFAULT_RECURSION_LIMIT@
|
#define CMake_DEFAULT_RECURSION_LIMIT @CMake_DEFAULT_RECURSION_LIMIT@
|
||||||
#define CMAKE_BIN_DIR "/@CMAKE_BIN_DIR@"
|
#define CMAKE_BIN_DIR "/@CMAKE_BIN_DIR@"
|
||||||
#define CMAKE_DATA_DIR "/@CMAKE_DATA_DIR@"
|
#define CMAKE_DATA_DIR "/@CMAKE_DATA_DIR@"
|
||||||
|
@@ -6,7 +6,10 @@
|
|||||||
#ifndef cm_memory
|
#ifndef cm_memory
|
||||||
#define cm_memory
|
#define cm_memory
|
||||||
|
|
||||||
|
#include "cmSTL.hxx" // IWYU pragma: keep
|
||||||
|
|
||||||
#include <memory> // IWYU pragma: export
|
#include <memory> // IWYU pragma: export
|
||||||
|
|
||||||
#if !defined(CMake_HAVE_CXX_MAKE_UNIQUE)
|
#if !defined(CMake_HAVE_CXX_MAKE_UNIQUE)
|
||||||
# include <cstddef>
|
# include <cstddef>
|
||||||
# include <type_traits>
|
# include <type_traits>
|
||||||
|
9
Utilities/std/cmSTL.hxx.in
Normal file
9
Utilities/std/cmSTL.hxx.in
Normal file
@@ -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
|
@@ -1272,6 +1272,9 @@ for feature in ${cmake_cxx_features}; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
cmake_generate_file "${cmake_bootstrap_dir}/cmSTL.hxx" ""
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Test Make
|
# Test Make
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user