aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTri Tran <lepnit205@gmail.com>2019-03-06 12:12:58 -0600
committerPhil Christensen <philc@microsoft.com>2019-03-06 10:12:58 -0800
commit2e8c0ca34d2219317a528fc886a887697b2b58a3 (patch)
tree68c051ebadefbb3e3826eb9858ee516c45566069
parented98d74199af861c19fdf2ee812aba14409d5eb2 (diff)
downloadvcpkg-2e8c0ca34d2219317a528fc886a887697b2b58a3.tar.gz
vcpkg-2e8c0ca34d2219317a528fc886a887697b2b58a3.zip
[tgui] Enable static build (#5568)
* [tgui] Enable static build * [tgui] Enable static build
-rw-r--r--ports/tgui/CONTROL2
-rw-r--r--ports/tgui/portfile.cmake5
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/tgui/CONTROL b/ports/tgui/CONTROL
index 8b253080a..521a36c48 100644
--- a/ports/tgui/CONTROL
+++ b/ports/tgui/CONTROL
@@ -1,4 +1,4 @@
Source: tgui
-Version: 0.8.4
+Version: 0.8.4-1
Description: TGUI is an easy to use, cross-platform, c++ GUI for SFML.
Build-Depends: sfml
diff --git a/ports/tgui/portfile.cmake b/ports/tgui/portfile.cmake
index dccecd0ac..9350e8480 100644
--- a/ports/tgui/portfile.cmake
+++ b/ports/tgui/portfile.cmake
@@ -11,12 +11,17 @@ vcpkg_extract_source_archive_ex(
ARCHIVE ${ARCHIVE}
)
+# Enable static build
+file(REMOVE ${SOURCE_PATH}/cmake/Modules/FindSFML.cmake)
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" TGUI_SHARED_LIBS)
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA # Disable this option if project cannot be built with Ninja
OPTIONS
-DTGUI_BUILD_GUI_BUILDER=OFF
-DTGUI_MISC_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}/share/tgui
+ -DTGUI_SHARED_LIBS=${TGUI_SHARED_LIBS}
)
vcpkg_install_cmake()