Author: mordante
Date: Sun May 24 15:49:30 2009
New Revision: 35874

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35874&view=rev
Log:
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.

Modified:
    trunk/src/CMakeLists.txt

Modified: trunk/src/CMakeLists.txt
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/CMakeLists.txt?rev=35874&r1=35873&r2=35874&view=diff
==============================================================================
--- trunk/src/CMakeLists.txt (original)
+++ trunk/src/CMakeLists.txt Sun May 24 15:49:30 2009
@@ -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} )


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to