summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index a51178ba..13dfa532 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -14,6 +14,24 @@ if( BUILD_LIBKDEPIM OR BUILD_KMAIL )
endif( )
+if( BUILD_INDEXLIB OR BUILD_KMAIL )
+
+ # check for stl coping with namespace std
+ tde_save( CMAKE_CXX_FLAGS )
+ string( REGEX REPLACE "-include tqt.h" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" )
+ check_cxx_source_compiles("
+ #include <iterator>
+ struct s : public std::iterator<std::forward_iterator_tag, int> {};
+ int main(int, char**) { return 0; } "
+ HAVE_STLNAMESPACE )
+ tde_restore( CMAKE_CXX_FLAGS )
+ if( HAVE_STLNAMESPACE )
+ set( STD_NAMESPACE_PREFIX "std::" )
+ endif( )
+
+endif( )
+
+
if( BUILD_LIBKDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBOOK )
if( NOT HAVE_GPGME_0_4_BRANCH )