diff options
author | Brad King <brad.king@kitware.com> | 2005-04-13 12:08:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-13 12:08:54 (GMT) |
commit | 743ab3a05f0f73a5e01429feea1b1e5e3a423d8a (patch) | |
tree | 28304f48a6031b2b4ca181bec8c4248fae07e858 /Source/kwsys/CMakeLists.txt | |
parent | 1713c3fd19ba04a5f951a54d3af6cc70996d98e2 (diff) | |
download | CMake-743ab3a05f0f73a5e01429feea1b1e5e3a423d8a.zip CMake-743ab3a05f0f73a5e01429feea1b1e5e3a423d8a.tar.gz CMake-743ab3a05f0f73a5e01429feea1b1e5e3a423d8a.tar.bz2 |
ENH: Adding SGI hash_map and hash_set implementation ported from STL to KWSys. This also adds try-compiles for KWSYS_STL_HAS_ALLOCATOR_REBIND, KWSYS_CXX_HAS_FULL_SPECIALIZATION, KWSYS_CXX_HAS_MEMBER_TEMPLATES, and KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS.
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index ba651b2..6d14b80 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -179,6 +179,8 @@ SET(KWSYS_PLATFORM_CXX_TEST_DEFINES -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}) KWSYS_PLATFORM_CXX_TEST(KWSYS_STL_STRING_HAVE_NEQ_CHAR "Checking whether stl string has operator!= for char*" DIRECT) +KWSYS_PLATFORM_CXX_TEST(KWSYS_STL_HAS_ALLOCATOR_REBIND + "Checking for rebind member of stl allocator" DIRECT) IF(KWSYS_IOS_USE_ANSI) # ANSI streams always have string operators. SET(KWSYS_STL_STRING_HAVE_OSTREAM 1) @@ -192,6 +194,13 @@ ELSE(KWSYS_IOS_USE_ANSI) ENDIF(KWSYS_IOS_USE_ANSI) SET(KWSYS_PLATFORM_CXX_TEST_DEFINES) +KWSYS_PLATFORM_CXX_TEST(KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS + "Checking whether \"<>\" is needed for template friends" INVERT) +KWSYS_PLATFORM_CXX_TEST(KWSYS_CXX_HAS_MEMBER_TEMPLATES + "Checking for member template support" DIRECT) +KWSYS_PLATFORM_CXX_TEST(KWSYS_CXX_HAS_FULL_SPECIALIZATION + "Checking for standard template specialization syntax" DIRECT) + IF(UNIX) KWSYS_PLATFORM_CXX_TEST(KWSYS_STAT_HAS_ST_MTIM "Checking whether struct stat has st_mtim member" DIRECT) @@ -229,7 +238,7 @@ INCLUDE_DIRECTORIES(${KWSYS_HEADER_ROOT}) # give standard names by which they may be included. SET(KWSYS_STL_HEADER_EXTRA_string 1) FOREACH(header algorithm deque iterator list map numeric queue set stack string - utility vector) + utility vector memory functional) # Configure the header wrapper. SET(KWSYS_STL_HEADER "${header}") IF(KWSYS_STL_HEADER_EXTRA_${header}) @@ -277,7 +286,7 @@ ENDFOREACH(header) # selected components. Initialize with required components. SET(KWSYS_CLASSES) SET(KWSYS_H_FILES Configure SharedForward) -SET(KWSYS_HXX_FILES Configure) +SET(KWSYS_HXX_FILES Configure hashtable hash_fun hash_map hash_set) # Enforce component dependencies. IF(KWSYS_USE_SystemTools) @@ -456,10 +465,12 @@ ENDIF(KWSYS_USE_Process) # Setup testing if not being built as part of another project. IF(KWSYS_STANDALONE) ADD_EXECUTABLE(testIOS testIOS.cxx) + ADD_EXECUTABLE(testhash testhash.cxx) ADD_EXECUTABLE(testProcess testProcess.c) ADD_EXECUTABLE(test1 test1.cxx) ADD_EXECUTABLE(testCommandLineArguments testCommandLineArguments.cxx) TARGET_LINK_LIBRARIES(testIOS ${KWSYS_NAMESPACE}) + TARGET_LINK_LIBRARIES(testhash ${KWSYS_NAMESPACE}) TARGET_LINK_LIBRARIES(testProcess ${KWSYS_NAMESPACE}_c) TARGET_LINK_LIBRARIES(test1 ${KWSYS_NAMESPACE}) TARGET_LINK_LIBRARIES(testCommandLineArguments ${KWSYS_NAMESPACE}) |