diff options
author | Brad King <brad.king@kitware.com> | 2005-04-21 17:47:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-21 17:47:43 (GMT) |
commit | 8ddc8accb3213e96cd3fdb56570b6c158342b1a9 (patch) | |
tree | f30805e5e728b2efc14848fe31a4ae8079d4bd72 /Source/kwsys/CMakeLists.txt | |
parent | 9719bf0bdd737a3fb9464144263a9a5eb6e6c933 (diff) | |
download | CMake-8ddc8accb3213e96cd3fdb56570b6c158342b1a9.zip CMake-8ddc8accb3213e96cd3fdb56570b6c158342b1a9.tar.gz CMake-8ddc8accb3213e96cd3fdb56570b6c158342b1a9.tar.bz2 |
COMP: Added KWSys try-compiles KWSYS_STL_HAS_ALLOCATOR_TEMPLATE and KWSYS_STL_HAS_ALLOCATOR_OBJECTS. Needed for more old-stl support in the hashtable.
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 2a9c4fa..ad49997 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -200,17 +200,22 @@ ELSE(KWSYS_STL_HAS_ITERATOR_TRAITS) "Checking whether stl has internal __iterator_category" DIRECT) ENDIF(KWSYS_STL_HAS_ITERATOR_CATEGORY) ENDIF(KWSYS_STL_HAS_ITERATOR_TRAITS) -KWSYS_PLATFORM_CXX_TEST(KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE - "Checking whether stl has old non-template allocator" DIRECT) -IF(KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE) - SET(KWSYS_STL_HAS_ALLOCATOR_REBIND 0) - SET(KWSYS_STL_HAS_ALLOCATOR_MAX_SIZE_ARGUMENT 0) -ELSE(KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE) +KWSYS_PLATFORM_CXX_TEST(KWSYS_STL_HAS_ALLOCATOR_TEMPLATE + "Checking whether stl has standard template allocator" DIRECT) +IF(KWSYS_STL_HAS_ALLOCATOR_TEMPLATE) + SET(KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE 0) KWSYS_PLATFORM_CXX_TEST(KWSYS_STL_HAS_ALLOCATOR_REBIND "Checking for rebind member of stl allocator" DIRECT) KWSYS_PLATFORM_CXX_TEST(KWSYS_STL_HAS_ALLOCATOR_MAX_SIZE_ARGUMENT "Checking for non-standard argument to stl allocator<>::max_size" DIRECT) -ENDIF(KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE) +ELSE(KWSYS_STL_HAS_ALLOCATOR_TEMPLATE) + KWSYS_PLATFORM_CXX_TEST(KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE + "Checking whether stl has old non-template allocator" DIRECT) + SET(KWSYS_STL_HAS_ALLOCATOR_REBIND 0) + SET(KWSYS_STL_HAS_ALLOCATOR_MAX_SIZE_ARGUMENT 0) +ENDIF(KWSYS_STL_HAS_ALLOCATOR_TEMPLATE) +KWSYS_PLATFORM_CXX_TEST(KWSYS_STL_HAS_ALLOCATOR_OBJECTS + "Checking whether stl containers support allocator objects." DIRECT) IF(KWSYS_IOS_USE_ANSI) # ANSI streams always have string operators. SET(KWSYS_STL_STRING_HAVE_OSTREAM 1) |