mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	Merge pull request #2303 from freiro/citra-qt_missing_sdl2_dll
Copy SDL2.dll when compiling citra-qt with msvc
This commit is contained in:
		@@ -1,3 +1,5 @@
 | 
			
		||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
 | 
			
		||||
 | 
			
		||||
set(SRCS
 | 
			
		||||
            emu_window/emu_window_sdl2.cpp
 | 
			
		||||
            citra.cpp
 | 
			
		||||
@@ -28,11 +30,6 @@ if(UNIX AND NOT APPLE)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
if (MSVC)
 | 
			
		||||
    include(WindowsCopyFiles)
 | 
			
		||||
 | 
			
		||||
    set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
 | 
			
		||||
 | 
			
		||||
    windows_copy_files(citra ${SDL2_DLL_DIR} ${DLL_DEST} SDL2.dll)
 | 
			
		||||
 | 
			
		||||
    unset(DLL_DEST)
 | 
			
		||||
    include(CopyCitraSDLDeps)
 | 
			
		||||
    copy_citra_SDL_deps(citra)
 | 
			
		||||
endif()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user