Fix a MSVC cmake compiler issue.
The escaping of the defines now also works for MSVC, tested by Reisiger.
This commit is contained in:
parent
4006de8ea5
commit
f8ce5aef8b
1 changed files with 4 additions and 4 deletions
|
@ -108,7 +108,7 @@ endif(CMAKE_COMPILER_IS_GNUCXX)
|
|||
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 @@ if(X11_FOUND)
|
|||
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")
|
||||
|
|
Loading…
Add table
Reference in a new issue