Browse Source

fix SDL3.dll not being included in the zip/installer on Windows

Sasha Szpakowski 10 months ago
parent
commit
74a44883fa
1 changed files with 4 additions and 0 deletions
  1. 4 0
      CMakeLists.txt

+ 4 - 0
CMakeLists.txt

@@ -2052,6 +2052,10 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
 	###################################
 	###################################
 	install(TARGETS love lovec liblove RUNTIME DESTINATION .)
 	install(TARGETS love lovec liblove RUNTIME DESTINATION .)
 
 
+	if(LOVE_USE_SDL3)
+		install(PROGRAMS $<TARGET_FILE:${MEGA_SDL3}> DESTINATION .)
+	endif()
+
 	# Our install script (and NSIS) doesn't fully support Windows ARM64 yet.
 	# Our install script (and NSIS) doesn't fully support Windows ARM64 yet.
 	if(MEGA_ARM64)
 	if(MEGA_ARM64)
 		set(CPACK_GENERATOR ZIP)
 		set(CPACK_GENERATOR ZIP)