CMake: Only test stl for c++ versions before 11
This commit is contained in:
@@ -143,7 +143,7 @@ wx_check_c_source_compiles(
|
|||||||
stdio.h
|
stdio.h
|
||||||
)
|
)
|
||||||
#TODO: wxNO_VARIADIC_MACROS
|
#TODO: wxNO_VARIADIC_MACROS
|
||||||
if(wxUSE_STL)
|
if(wxUSE_STL AND NOT wxHAS_CXX11)
|
||||||
wx_check_cxx_source_compiles("
|
wx_check_cxx_source_compiles("
|
||||||
std::vector<int> moo;
|
std::vector<int> moo;
|
||||||
std::list<int> foo;
|
std::list<int> foo;
|
||||||
@@ -168,6 +168,12 @@ if(wxUSE_STL)
|
|||||||
HAVE_STD_STRING_COMPARE
|
HAVE_STD_STRING_COMPARE
|
||||||
string
|
string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
wx_check_cxx_source_compiles(
|
||||||
|
"std::wstring s;"
|
||||||
|
HAVE_STD_WSTRING
|
||||||
|
string
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Check for availability of GCC's atomic operations builtins.
|
# Check for availability of GCC's atomic operations builtins.
|
||||||
@@ -584,13 +590,6 @@ check_include_file(w32api.h HAVE_W32API_H)
|
|||||||
check_include_file(wchar.h HAVE_WCHAR_H)
|
check_include_file(wchar.h HAVE_WCHAR_H)
|
||||||
check_include_file(wcstr.h HAVE_WCSTR_H)
|
check_include_file(wcstr.h HAVE_WCSTR_H)
|
||||||
|
|
||||||
|
|
||||||
wx_check_cxx_source_compiles(
|
|
||||||
"std::wstring s;"
|
|
||||||
HAVE_STD_WSTRING
|
|
||||||
string
|
|
||||||
)
|
|
||||||
|
|
||||||
if(wxUSE_DATETIME)
|
if(wxUSE_DATETIME)
|
||||||
# check for timezone variable
|
# check for timezone variable
|
||||||
# doesn't exist under Darwin / Mac OS X which uses tm_gmtoff instead
|
# doesn't exist under Darwin / Mac OS X which uses tm_gmtoff instead
|
||||||
|
Reference in New Issue
Block a user