summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-21 23:34:09 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-21 23:34:09 +0000
commit75f32756ec8e53a0f254866c0d7120b078ce3b6e (patch)
tree8ce60911389d282ef783a29d067aba67cfd50d3d /ConfigureChecks.cmake
parent760bf34acbfebc8f7d2c569238138173c103f0db (diff)
downloadtdepim-75f32756ec8e53a0f254866c0d7120b078ce3b6e.tar.gz
tdepim-75f32756ec8e53a0f254866c0d7120b078ce3b6e.zip
[kdepim] indexlib ported to cmake; added indexlib (optional) support to kmail
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225601 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 a51178baa..13dfa5327 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 )