3
0
Fork 0
forked from suyu/suyu

Merge pull request #9379 from liamwhite/cmake-mess

yuzu-cmd: link SDL2 correctly
This commit is contained in:
Narr the Reg 2022-12-04 11:10:09 -06:00 committed by GitHub
commit 919b4acfea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

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

View file

@ -38,7 +38,7 @@ target_link_libraries(yuzu-cmd PRIVATE inih glad)
if (MSVC)
target_link_libraries(yuzu-cmd PRIVATE getopt)
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")
target_include_directories(yuzu-cmd PRIVATE ${RESOURCES_DIR})