Skip to content

Commit ff079e0

Browse files
authored
Fix string escaping in ADD_DEFINITIONS
Recent CMake handles this on its own and does not need a lot of backslashes.
1 parent 185de0a commit ff079e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ MESSAGE("Game data dir: ${astromenace_DATA}")
211211

212212
# custom game data sources location
213213
IF(DATADIR)
214-
ADD_DEFINITIONS(-DDATADIR=\\"${DATADIR}\\")
214+
ADD_DEFINITIONS(-DDATADIR="${DATADIR}")
215215
ENDIF(DATADIR)
216216

217217
IF(WINDOWS)

0 commit comments

Comments
 (0)