Explorar o código

yuzu-cmd: link SDL2 correctly

Liam %!s(int64=3) %!d(string=hai) anos
pai
achega
0cbfdf7ecb
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  1. 0 1
      externals/CMakeLists.txt
  2. 1 1
      src/yuzu_cmd/CMakeLists.txt

+ 0 - 1
externals/CMakeLists.txt

@@ -69,7 +69,6 @@ if (YUZU_USE_EXTERNAL_SDL2)
     endif()
     endif()
 
 
     add_subdirectory(SDL EXCLUDE_FROM_ALL)
     add_subdirectory(SDL EXCLUDE_FROM_ALL)
-    target_link_directories(SDL2-static INTERFACE "${SDL2_BINARY_DIR}")
 endif()
 endif()
 
 
 # ENet
 # ENet

+ 1 - 1
src/yuzu_cmd/CMakeLists.txt

@@ -38,7 +38,7 @@ target_link_libraries(yuzu-cmd PRIVATE inih glad)
 if (MSVC)
 if (MSVC)
     target_link_libraries(yuzu-cmd PRIVATE getopt)
     target_link_libraries(yuzu-cmd PRIVATE getopt)
 endif()
 endif()
-target_link_libraries(yuzu-cmd PRIVATE ${PLATFORM_LIBRARIES} SDL2 Threads::Threads)
+target_link_libraries(yuzu-cmd PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
 
 
 create_resource("../../dist/yuzu.bmp" "yuzu_cmd/yuzu_icon.h" "yuzu_icon")
 create_resource("../../dist/yuzu.bmp" "yuzu_cmd/yuzu_icon.h" "yuzu_icon")
 target_include_directories(yuzu-cmd PRIVATE ${RESOURCES_DIR})
 target_include_directories(yuzu-cmd PRIVATE ${RESOURCES_DIR})