aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNic Holthaus <nholthaus@gmail.com>2017-09-18 19:15:16 -0400
committerNic Holthaus <nholthaus@gmail.com>2017-09-18 19:15:16 -0400
commit2e6bb72599d3789ac7af530cde0d56afab0a76ff (patch)
tree0479c8a5a21f61f12f2e0c34d887a61ec8ea8b84
parent0b10f30a99ec2c423125a8137b7c6caef93013ef (diff)
downloadvcpkg-2e6bb72599d3789ac7af530cde0d56afab0a76ff.tar.gz
vcpkg-2e6bb72599d3789ac7af530cde0d56afab0a76ff.zip
git push clean-up of portfile
-rw-r--r--ports/units/portfile.cmake17
1 files changed, 1 insertions, 16 deletions
diff --git a/ports/units/portfile.cmake b/ports/units/portfile.cmake
index 0c71a5287..910626f6d 100644
--- a/ports/units/portfile.cmake
+++ b/ports/units/portfile.cmake
@@ -1,15 +1,3 @@
-# Common Ambient Variables:
-# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
-# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
-# CURRENT_PORT_DIR = ${VCPKG_ROOT_DIR}\ports\${PORT}
-# PORT = current port name (zlib, etc)
-# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc)
-# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic)
-# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic)
-# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
-# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
-#
-
include(vcpkg_common_functions)
vcpkg_from_github(
@@ -23,14 +11,11 @@ vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA # Disable this option if project cannot be built with Ninja
OPTIONS -DBUILD_TESTS=OFF
- # OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
- # OPTIONS_RELEASE -DOPTIMIZE=1
- # OPTIONS_DEBUG -DDEBUGGABLE=1
)
vcpkg_install_cmake()
-# Handle copyright
+# Handle copyright/readme/package files
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/units RENAME copyright)
file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/units)
file(RENAME ${CURRENT_PACKAGES_DIR}/cmake/unitsConfig.cmake ${CURRENT_PACKAGES_DIR}/share/units/unitsConfig.cmake)