diff options
author | Brad King <brad.king@kitware.com> | 2005-03-29 13:20:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-03-29 13:20:08 (GMT) |
commit | 22f6d68be3e6630b21bb17de63273965de44ee45 (patch) | |
tree | 8225f2a9c0bb6fb085e482bc04f44bfb7e7a8e5d /bootstrap | |
parent | c7a2c80c178457b4d8a1525a6b0ccff9ca4e5afa (diff) | |
download | CMake-22f6d68be3e6630b21bb17de63273965de44ee45.zip CMake-22f6d68be3e6630b21bb17de63273965de44ee45.tar.gz CMake-22f6d68be3e6630b21bb17de63273965de44ee45.tar.bz2 |
ENH: Added istream and ostream operators for stl string in KWSys when using old streams that do not provide them.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -200,6 +200,8 @@ cmake_kwsys_config_replace_string () s/@KWSYS_IOS_USE_STRSTREAM_H@/${KWSYS_IOS_USE_STRSTREAM_H}/g; s/@KWSYS_IOS_USE_STRSTREA_H@/${KWSYS_IOS_USE_STRSTREA_H}/g; s/@KWSYS_STL_HAVE_STD@/${KWSYS_STL_HAVE_STD}/g; + s/@KWSYS_STL_STRING_HAVE_ISTREAM@/${KWSYS_STL_STRING_HAVE_ISTREAM}/g; + s/@KWSYS_STL_STRING_HAVE_OSTREAM@/${KWSYS_STL_STRING_HAVE_OSTREAM}/g; s/@KWSYS_STAT_HAS_ST_MTIM@/${KWSYS_STAT_HAS_ST_MTIM}/g;}" >> "${OUTFILE}.tmp" if [ -f "${OUTFILE}.tmp" ]; then if diff "${OUTFILE}" "${OUTFILE}.tmp" > /dev/null 2> /dev/null ; then @@ -708,6 +710,10 @@ KWSYS_IOS_USE_ANSI=0 KWSYS_STL_HAVE_STD=0 KWSYS_STAT_HAS_ST_MTIM=0 +# Hardcode these kwsys features. They work on all known UNIX compilers anyway. +KWSYS_STL_STRING_HAVE_ISTREAM=1 +KWSYS_STL_STRING_HAVE_OSTREAM=1 + if cmake_try_run "${cmake_cxx_compiler}" \ "${cmake_cxx_flags} -DTEST_KWSYS_STL_HAVE_STD" \ "${cmake_source_dir}/Source/kwsys/kwsysPlatformCxxTests.cxx" >> cmake_bootstrap.log 2>&1; then @@ -868,7 +874,10 @@ for a in ${KWSYS_IOS_FILES}; do "${cmake_bootstrap_dir}/cmsys/ios/${a}" KWSYS_NAMESPACE cmsys done -cmake_replace_string "${cmake_source_dir}/Source/kwsys/kwsys_stl.h.in" \ +cmake_replace_string "${cmake_source_dir}/Source/kwsys/kwsys_stl.hxx.in" \ + "${cmake_bootstrap_dir}/cmsys/stl/stl.hxx.in" KWSYS_STL_HEADER_EXTRA "" + +cmake_replace_string "${cmake_bootstrap_dir}/cmsys/stl/stl.hxx.in" \ "${cmake_bootstrap_dir}/cmsys/stl/stl.h.in" KWSYS_NAMESPACE cmsys for a in string vector map; do |