Fix building g2.dat if the path contains spaces/apostrophes (#7388)

This commit is contained in:
Michael Steenbeek 2018-04-08 13:25:54 +02:00 committed by Ted John
parent 0ab3d0955c
commit f98aae12f1
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ include("${ROOT_DIR}/src/openrct2-ui/CMakeLists.txt" NO_POLICY_SCOPE)
# g2
add_custom_command(
OUTPUT g2.dat
COMMAND ./openrct2 sprite build ${CMAKE_BINARY_DIR}/g2.dat ${ROOT_DIR}/resources/g2/sprites.json
COMMAND ./openrct2 sprite build \"${CMAKE_BINARY_DIR}/g2.dat\" \"${ROOT_DIR}/resources/g2/sprites.json\"
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
add_custom_target(g2 DEPENDS ${PROJECT} g2.dat)