BUG: Test for stl stirng operator!= for char* needs to know result of KWSYS_STL_HAVE_STD.
This commit is contained in:
parent
7298d22666
commit
3bb990dcf1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue