aboutsummaryrefslogtreecommitdiff
path: root/ports/nvtt
diff options
context:
space:
mode:
Diffstat (limited to 'ports/nvtt')
-rw-r--r--ports/nvtt/CONTROL4
-rw-r--r--ports/nvtt/portfile.cmake16
2 files changed, 5 insertions, 15 deletions
diff --git a/ports/nvtt/CONTROL b/ports/nvtt/CONTROL
index 19ef69da0..15c72fa71 100644
--- a/ports/nvtt/CONTROL
+++ b/ports/nvtt/CONTROL
@@ -1,3 +1,3 @@
Source: nvtt
-Version: 2.1.0-1
-Description: Texture processing tools with support for Direct3D 10 and 11 formats. \ No newline at end of file
+Version: 2.1.0-2
+Description: Texture processing tools with support for Direct3D 10 and 11 formats.
diff --git a/ports/nvtt/portfile.cmake b/ports/nvtt/portfile.cmake
index 30e2e5cc6..299732a37 100644
--- a/ports/nvtt/portfile.cmake
+++ b/ports/nvtt/portfile.cmake
@@ -1,17 +1,7 @@
-# Common Ambient Variables:
-# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
-# TARGET_TRIPLET is the current triplet (x86-windows, etc)
-# PORT is the current port name (zlib, etc)
-# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
-# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
-#
-if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
- message(STATUS "Warning: Dynamic building not supported yet. Building static.")
- set(VCPKG_LIBRARY_LINKAGE static)
-endif()
-
include(vcpkg_common_functions)
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO castano/nvidia-texture-tools
@@ -34,7 +24,7 @@ vcpkg_install_cmake()
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
-
+
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)