Author: mordante
Date: Mon Apr 13 16:41:42 2009
New Revision: 34867

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34867&view=rev
Log:
Fix a MSVC cmake compiler issue.

The escaping of the defines now also works for MSVC, tested by Reisiger.

Modified:
    trunk/CMakeLists.txt

Modified: trunk/CMakeLists.txt
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/CMakeLists.txt?rev=34867&r1=34866&r2=34867&view=diff
==============================================================================
--- trunk/CMakeLists.txt (original)
+++ trunk/CMakeLists.txt Mon Apr 13 16:41:42 2009
@@ -108,7 +108,7 @@
 set(DATADIR ${DATAROOTDIR}/${DATADIRNAME})
 
 if(NOT WIN32)
-  add_definitions(-DWESNOTH_PATH='\"${DATADIR}\"')
+  add_definitions(-DWESNOTH_PATH=\\\"${DATADIR}\\\")
 endif(NOT WIN32)
 
 if(NOT ENABLE_POOL_ALLOC OR WIN32)
@@ -124,13 +124,13 @@
 endif(X11_FOUND)
 
 add_definitions(-DHAS_RELATIVE_LOCALEDIR)
-add_definitions(-DLOCALEDIR='\"${LOCALEDIR}\"')
+add_definitions(-DLOCALEDIR=\\\"${LOCALEDIR}\\\")
 set(LOCALE_INSTALL ${DATADIR}/${LOCALEDIR})
 
-add_definitions(-DFIFODIR='\"${FIFO_DIR}\"')
+add_definitions(-DFIFODIR=\\\"${FIFO_DIR}\\\")
 
 if(PREFERENCES_DIR)
-  add_definitions(-DPREFERENCES_DIR='\"${PREFERENCES_DIR}\"')
+  add_definitions(-DPREFERENCES_DIR=\\\"${PREFERENCES_DIR}\\\")
 endif(PREFERENCES_DIR)
 
 if(GUI STREQUAL "tiny")


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

Reply via email to