diff options
author | Brad King <brad.king@kitware.com> | 2005-03-30 20:27:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-03-30 20:27:16 (GMT) |
commit | 3bb990dcf1d488a3e9b4489e547ea705202b9c6a (patch) | |
tree | e4f7fd93f8955b2d5c9d6bfeee61d65a53698890 /Source | |
parent | 7298d226669ce027d06bc38a36618fa646610614 (diff) | |
download | CMake-3bb990dcf1d488a3e9b4489e547ea705202b9c6a.zip CMake-3bb990dcf1d488a3e9b4489e547ea705202b9c6a.tar.gz CMake-3bb990dcf1d488a3e9b4489e547ea705202b9c6a.tar.bz2 |
BUG: Test for stl stirng operator!= for char* needs to know result of KWSYS_STL_HAVE_STD.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index e355028..ba651b2 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -175,23 +175,22 @@ ELSE(KWSYS_IOS_USE_SSTREAM) ENDIF(KWSYS_IOS_USE_STRSTREAM_H) ENDIF(KWSYS_IOS_USE_SSTREAM) +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) - IF(KWSYS_IOS_USE_ANSI) # ANSI streams always have string operators. SET(KWSYS_STL_STRING_HAVE_OSTREAM 1) SET(KWSYS_STL_STRING_HAVE_ISTREAM 1) ELSE(KWSYS_IOS_USE_ANSI) # There may not be string operators for old streams. - SET(KWSYS_PLATFORM_CXX_TEST_DEFINES - -DKWSYS_STL_HAVE_STD=${KWSYS_STL_HAVE_STD}) KWSYS_PLATFORM_CXX_TEST(KWSYS_STL_STRING_HAVE_OSTREAM "Checking whether stl string has ostream operator<<" DIRECT) KWSYS_PLATFORM_CXX_TEST(KWSYS_STL_STRING_HAVE_ISTREAM "Checking whether stl string has istream operator>>" DIRECT) - SET(KWSYS_PLATFORM_CXX_TEST_DEFINES) ENDIF(KWSYS_IOS_USE_ANSI) +SET(KWSYS_PLATFORM_CXX_TEST_DEFINES) IF(UNIX) KWSYS_PLATFORM_CXX_TEST(KWSYS_STAT_HAS_ST_MTIM |