summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-15 20:00:44 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-15 20:00:44 (GMT)
commitbddade9696d8fec453f9ce79168ad5aa678290ab (patch)
treeceb606dd6b7b492367a3e66606e730fa2c4ee79b /Source/kwsys/CMakeLists.txt
parentcc996274f8c00f2651e260d1a6828c8877c4e2bd (diff)
downloadCMake-bddade9696d8fec453f9ce79168ad5aa678290ab.zip
CMake-bddade9696d8fec453f9ce79168ad5aa678290ab.tar.gz
CMake-bddade9696d8fec453f9ce79168ad5aa678290ab.tar.bz2
COMP: Added KWSYS_CXX_HAS_CSTDDEF try-compile to KWSys to provide kwsys/cstddef header (to get size_t for hash_fun.hxx).
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index f77d3a0..a1e12bb 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -178,6 +178,9 @@ ELSE(KWSYS_IOS_USE_SSTREAM)
ENDIF(KWSYS_IOS_USE_STRSTREAM_H)
ENDIF(KWSYS_IOS_USE_SSTREAM)
+KWSYS_PLATFORM_CXX_TEST(KWSYS_CXX_HAS_CSTDDEF
+ "Checking whether header cstddef is available" DIRECT)
+
SET(KWSYS_PLATFORM_CXX_TEST_DEFINES
-DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD})
KWSYS_PLATFORM_CXX_TEST(KWSYS_STL_STRING_HAVE_NEQ_CHAR
@@ -294,6 +297,11 @@ FOREACH(header algorithm deque iterator list map numeric queue set stack string
ENDIF(KWSYS_HEADER_INSTALL_DIR)
ENDFOREACH(header)
+# Provide cstddef header.
+CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/kwsys_cstddef.hxx.in
+ ${KWSYS_HEADER_DIR}/cstddef
+ @ONLY IMMEDIATE)
+
#-----------------------------------------------------------------------------
# Create streams header wrappers to give standard names by which they
# may be included.