From dc75c4f39bbe2cba6f121f176c1ad9be933509e6 Mon Sep 17 00:00:00 2001 From: Neil Horne <15316949+elecpower@users.noreply.github.com> Date: Tue, 12 Aug 2025 16:23:22 +1000 Subject: [PATCH] fix(cpn): win 64 installer to bundle sdl2.dll (#6508) Co-authored-by: elecpower --- companion/src/CMakeLists.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/companion/src/CMakeLists.txt b/companion/src/CMakeLists.txt index 9dc68873e..06f109d28 100644 --- a/companion/src/CMakeLists.txt +++ b/companion/src/CMakeLists.txt @@ -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 $ + DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}) endif() elseif(APPLE)