From d92530c8ccc47c4b71da24f9654c4a79778563f8 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Sun, 24 May 2009 13:49:30 +0000 Subject: [PATCH] Fix a strict compilation error with cmake. I'm not entirely sure about this commit so if things break, try to revert this. It fixes compilation on Ivanovic's system. --- src/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6d6c393c49a..483005f9eb8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,10 @@ ## some includes ## -include_directories( ${Boost_INCLUDE_DIR} ) +if(MSVC) + # This seems to break on some Linux systems in combination with strict + # compilation, so disabled for now. The problem occurred on Gentoo with + # boost 1.37. Debian with boost 1.34, 1.35 and 1.38 works properly. + include_directories( ${Boost_INCLUDE_DIR} ) +endif(MSVC) include_directories( ${LUA_INCLUDE_DIR} ) include_directories( ${SDL_INCLUDE_DIR} ) include_directories( ${PANGOCAIRO_INCLUDE_DIRS} )