diff options
author | Liam <byteslice@airmail.cc> | 2022-12-03 19:32:24 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-12-04 16:12:26 +0100 |
commit | 6d2c59737177dba09a0a2a31e96276addf52c172 (patch) | |
tree | 9bb6050c056d66f880557e3fd5b3058638afd66d /src/yuzu_cmd | |
parent | Merge pull request #9300 from ameerj/pch (diff) | |
download | yuzu-6d2c59737177dba09a0a2a31e96276addf52c172.tar yuzu-6d2c59737177dba09a0a2a31e96276addf52c172.tar.gz yuzu-6d2c59737177dba09a0a2a31e96276addf52c172.tar.bz2 yuzu-6d2c59737177dba09a0a2a31e96276addf52c172.tar.lz yuzu-6d2c59737177dba09a0a2a31e96276addf52c172.tar.xz yuzu-6d2c59737177dba09a0a2a31e96276addf52c172.tar.zst yuzu-6d2c59737177dba09a0a2a31e96276addf52c172.zip |
Diffstat (limited to 'src/yuzu_cmd')
-rw-r--r-- | src/yuzu_cmd/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp | 6 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt index daabf608d..094387ade 100644 --- a/src/yuzu_cmd/CMakeLists.txt +++ b/src/yuzu_cmd/CMakeLists.txt @@ -44,8 +44,9 @@ target_include_directories(yuzu-cmd PRIVATE ${RESOURCES_DIR}) target_include_directories(yuzu-cmd PRIVATE ../../externals/Vulkan-Headers/include) if (YUZU_USE_EXTERNAL_SDL2) - target_compile_definitions(yuzu-cmd PRIVATE -DYUZU_USE_EXTERNAL_SDL2) - target_include_directories(yuzu-cmd PRIVATE ${PROJECT_BINARY_DIR}/externals/SDL/include) + target_link_libraries(yuzu-cmd PRIVATE SDL2-static) +else() + target_link_libraries(yuzu-cmd PRIVATE SDL2) endif() if(UNIX AND NOT APPLE) diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp index 0d580fe4f..9ed47d453 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp @@ -12,12 +12,6 @@ #include "video_core/renderer_vulkan/renderer_vulkan.h" #include "yuzu_cmd/emu_window/emu_window_sdl2_vk.h" -#ifdef YUZU_USE_EXTERNAL_SDL2 -// Include this before SDL.h to prevent the external from including a dummy -#define USING_GENERATED_CONFIG_H -#include <SDL_config.h> -#endif - #include <SDL.h> #include <SDL_syswm.h> |