Skip to content

Commit

Permalink
Fix string escaping in ADD_DEFINITIONS
Browse files Browse the repository at this point in the history
Recent CMake handles this on its own and does not need a lot of backslashes.
  • Loading branch information
AMDmi3 committed Oct 16, 2018
1 parent 185de0a commit ff079e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -211,7 +211,7 @@ MESSAGE("Game data dir: ${astromenace_DATA}")

# custom game data sources location
IF(DATADIR)
ADD_DEFINITIONS(-DDATADIR=\\"${DATADIR}\\")
ADD_DEFINITIONS(-DDATADIR="${DATADIR}")
ENDIF(DATADIR)

IF(WINDOWS)
Expand Down

0 comments on commit ff079e0

Please sign in to comment.