Author: mordante
Date: Mon Apr 13 16:41:32 2009
New Revision: 34866
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34866&view=rev
Log:
Fix a MSVC cmake compiler issue.
sdl-config is not available for MSVC, tested by Reisiger.
Modified:
trunk/CMakeLists.txt
Modified: trunk/CMakeLists.txt
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/CMakeLists.txt?rev=34866&r1=34865&r2=34866&view=diff
==============================================================================
--- trunk/CMakeLists.txt (original)
+++ trunk/CMakeLists.txt Mon Apr 13 16:41:32 2009
@@ -28,10 +28,13 @@
find_package( FriBiDi )
find_package( X11 )
-#needed to get some SDL defines in... (as of rev31694 -D_GNU_SOURCE=1 is
required!)
-set(SDL_CONFIG "sdl-config" CACHE STRING "Path to sdl-config script")
-exec_program(${SDL_CONFIG} ARGS "--cflags" OUTPUT_VARIABLE SDL_CFLAGS)
-add_definitions(${SDL_CFLAGS})
+if(NOT MSVC)
+ #needed to get some SDL defines in... (as of rev31694 -D_GNU_SOURCE=1
is required!)
+ set(SDL_CONFIG "sdl-config" CACHE STRING "Path to sdl-config script")
+ exec_program(${SDL_CONFIG} ARGS "--cflags" OUTPUT_VARIABLE SDL_CFLAGS)
+ add_definitions(${SDL_CFLAGS})
+endif(NOT MSVC)
+
#check for some compiler/arch specific things and export defines accordingly...
INCLUDE (SearchForStuff)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits