mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 18:29:02 +08:00
c7f8a9db6b
* [tgui] Fix usage * update version record * update to 0.9.1 * update version record * [tgui] Add feature sdl2 and sfml, fix dependencies * add comment * version * fix gui-builder build * Update versions/t-/tgui.json * Update ports/tgui/vcpkg.json * update manifest * update to latest commit * update version record * Update versions/baseline.json
28 lines
1012 B
Diff
28 lines
1012 B
Diff
diff --git a/src/Backends/SDL/CMakeLists.txt b/src/Backends/SDL/CMakeLists.txt
|
|
index d86f11d..1e31e21 100644
|
|
--- a/src/Backends/SDL/CMakeLists.txt
|
|
+++ b/src/Backends/SDL/CMakeLists.txt
|
|
@@ -1,10 +1,10 @@
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake_modules)
|
|
|
|
-find_package(SDL2 REQUIRED)
|
|
-find_package(SDL2_ttf REQUIRED)
|
|
+find_package(SDL2 CONFIG REQUIRED)
|
|
+find_package(sdl2-ttf CONFIG REQUIRED)
|
|
|
|
# Link to SDL and set include and library search directories
|
|
-target_link_libraries(tgui PRIVATE SDL2::Core SDL2::TTF)
|
|
+target_link_libraries(tgui PRIVATE SDL2::SDL2 SDL2::SDL2_ttf)
|
|
|
|
# Add the backend source files to the library
|
|
target_sources(tgui PRIVATE
|
|
@@ -19,7 +19,7 @@ target_sources(tgui PRIVATE
|
|
)
|
|
|
|
add_library(tgui-sdl-interface INTERFACE)
|
|
-target_link_libraries(tgui-sdl-interface INTERFACE SDL2::Core SDL2::TTF SDL2::Main)
|
|
+target_link_libraries(tgui-sdl-interface INTERFACE SDL2::SDL2 SDL2::SDL2_ttf SDL2::SDL2main)
|
|
|
|
# Also link to OpenGL or OpenGL ES
|
|
if(NOT TGUI_USE_GLES)
|