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)