fix(cpn): win 64 installer to bundle sdl2.dll (#6508)

Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
Neil Horne
2025-08-12 08:23:22 +02:00
committed by GitHub
co-authored by elecpower
parent 073bebd9e5
commit dc75c4f39b
+2 -7
View File
@@ -464,13 +464,8 @@ elseif(WIN32)
endif(OPENSSL_FOUND)
if(TARGET SDL2::SDL2)
# Get the SDL2 DLL location
get_target_property(SDL2_DLL_PATH SDL2::SDL2 IMPORTED_LOCATION)
if(SDL2_DLL_PATH)
install(FILES "${SDL2_DLL_PATH}"
DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}
COMPONENT Runtime)
endif()
install(FILES $<TARGET_FILE:SDL2::SDL2>
DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR})
endif()
elseif(APPLE)