diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2021-05-18 14:24:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-17 23:24:46 -0700 |
| commit | c7f8a9db6bd715d056046489dfa9408dc492f93b (patch) | |
| tree | 7ad3eae54e2a26772f2f4b71d824eee24325bf11 /ports/tgui/fix-usage.patch | |
| parent | 968c5eba7b9f24806b27d59593c389598402bc69 (diff) | |
| download | vcpkg-c7f8a9db6bd715d056046489dfa9408dc492f93b.tar.gz vcpkg-c7f8a9db6bd715d056046489dfa9408dc492f93b.zip | |
[tgui] Fix usage and update to 0.9.1 (#17093)
* [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
Diffstat (limited to 'ports/tgui/fix-usage.patch')
| -rw-r--r-- | ports/tgui/fix-usage.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ports/tgui/fix-usage.patch b/ports/tgui/fix-usage.patch new file mode 100644 index 000000000..cbc43b4e7 --- /dev/null +++ b/ports/tgui/fix-usage.patch @@ -0,0 +1,23 @@ +diff --git a/cmake/TGUIConfig.cmake.in b/cmake/TGUIConfig.cmake.in +index 63e8a45..01804cd 100644 +--- a/cmake/TGUIConfig.cmake.in ++++ b/cmake/TGUIConfig.cmake.in +@@ -44,6 +44,9 @@ + # add_executable(myapp ...) + # target_link_libraries(myapp tgui) + ++include(CMakeFindDependencyMacro) ++find_dependency(SFML COMPONENTS graphics CONFIG) ++ + set(FIND_TGUI_PATHS + "${CMAKE_CURRENT_LIST_DIR}/../.." + ${TGUI_ROOT} +@@ -58,7 +61,7 @@ set(FIND_TGUI_PATHS + /opt) + + # Choose which target definitions must be imported +-if (TGUI_STATIC_LIBRARIES) ++if (NOT @TGUI_SHARED_LIBS@) + set(TGUI_IS_FRAMEWORK_INSTALL "@TGUI_BUILD_FRAMEWORKS@") + if (TGUI_IS_FRAMEWORK_INSTALL) + message(WARNING "Static frameworks are not supported by TGUI. Clear TGUI_DIR cache entry, \ |
