Explorar el Código

Fix Game post build copy to create the directory

Unfortunately copy_if_different does not create the directory if it does not exist.
James Mitchell hace 6 años
padre
commit
380bedecff
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      Source/Game/CMakeLists.txt

+ 1 - 0
Source/Game/CMakeLists.txt

@@ -36,6 +36,7 @@ if (BS_COPY_FOLDER)
 	set(DST_FOLDER ${PROJECT_SOURCE_DIR}/Data/Binaries/${BS_COPY_FOLDER})
 	add_custom_command(
 		TARGET Game POST_BUILD
+		COMMAND ${CMAKE_COMMAND} -E make_directory "${DST_FOLDER}"
 		COMMAND ${CMAKE_COMMAND} -E copy_if_different "$<TARGET_FILE:Game>" "${DST_FOLDER}")
 endif()