summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-05-08 18:46:23 (GMT)
committerBrad King <brad.king@kitware.com>2003-05-08 18:46:23 (GMT)
commit43419192cb13b767585968115530274ab22459cf (patch)
treeaf06a6c130e3a76c2e2de0ea03ece0dc45795d74 /Source/kwsys/CMakeLists.txt
parent332f4021911a7be31c89a697938ba469a624a9c3 (diff)
downloadCMake-43419192cb13b767585968115530274ab22459cf.zip
CMake-43419192cb13b767585968115530274ab22459cf.tar.gz
CMake-43419192cb13b767585968115530274ab22459cf.tar.bz2
ENH: Reduced header dependencies and cleaned up inclusion of standard headers.
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 6edaf3f..6b3cbf6 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -51,6 +51,20 @@ IF(KWSYS_INCLUDE_INSTALL_DIR)
FILES ${KWSYS_INCLUDES})
ENDIF(KWSYS_INCLUDE_INSTALL_DIR)
+#-----------------------------------------------------------------------------
+# Create STL header wrappers to block warnings in the STL headers.
+FOREACH(header algorithm deque iterator list map numeric queue set stack string
+ utility vector)
+ SET(KWSYS_STL_HEADER "${header}")
+ CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/kwsys_std.h.in
+ ${PROJECT_BINARY_DIR}/../${KWSYS_NAMESPACE}/std/${header}
+ @ONLY IMMEDIATE)
+ IF(KWSYS_INCLUDE_INSTALL_DIR)
+ INSTALL_FILES(${KWSYS_INCLUDE_INSTALL_DIR}/${KWSYS_NAMESPACE}
+ FILES ${PROJECT_BINARY_DIR}/../${KWSYS_NAMESPACE}/std/${header})
+ ENDIF(KWSYS_INCLUDE_INSTALL_DIR)
+ENDFOREACH(header)
+
IF(KWSYS_DEFAULTS)
INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR}/..)
ADD_EXECUTABLE(test1 test1.cxx)