aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorPhoebe <20694052+PhoebeHui@users.noreply.github.com>2021-08-14 04:41:32 +0800
committerGitHub <noreply@github.com>2021-08-13 13:41:32 -0700
commit612102b82840a47af0c6ab26135ff633f41dcd82 (patch)
treea70ffe8f7738dec40b4c5c3bc3919d9694b8eab6 /ports
parent7e396645d919f463ef6f0f2ad6a8c5272c1f9b27 (diff)
downloadvcpkg-612102b82840a47af0c6ab26135ff633f41dcd82.tar.gz
vcpkg-612102b82840a47af0c6ab26135ff633f41dcd82.zip
[proj4] Fix the usage (#19474)
* [proj4] Fix the usage * Update the baseline * Small changes * Update the baseline version * Remove PREFER_NINJA * Update the baseline revision * Update the version scheme * Update the baseline version * Avoid configure_file to fill out proj4. Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Diffstat (limited to 'ports')
-rw-r--r--ports/proj4/portfile.cmake7
-rw-r--r--ports/proj4/usage2
-rw-r--r--ports/proj4/vcpkg.json4
3 files changed, 6 insertions, 7 deletions
diff --git a/ports/proj4/portfile.cmake b/ports/proj4/portfile.cmake
index feff73e4f..c19e07b07 100644
--- a/ports/proj4/portfile.cmake
+++ b/ports/proj4/portfile.cmake
@@ -44,7 +44,6 @@ endif()
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS}
-DPROJ_LIB_SUBDIR=lib
-DPROJ_INCLUDE_SUBDIR=include
@@ -65,7 +64,7 @@ endif ()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
-configure_file("${CURRENT_PORT_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
-file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
-
vcpkg_copy_pdbs()
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/proj4/usage b/ports/proj4/usage
index a2297ca02..ebf9f6c8d 100644
--- a/ports/proj4/usage
+++ b/ports/proj4/usage
@@ -1,4 +1,4 @@
-The package ${PORT}:${TARGET_TRIPLET} provides CMake targets:
+The package proj4 provides CMake targets:
find_package(PROJ CONFIG REQUIRED)
target_link_libraries(main PRIVATE PROJ::proj)
diff --git a/ports/proj4/vcpkg.json b/ports/proj4/vcpkg.json
index 234f92494..770896f9c 100644
--- a/ports/proj4/vcpkg.json
+++ b/ports/proj4/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "proj4",
- "version-string": "7.2.1",
- "port-version": 3,
+ "version-semver": "7.2.1",
+ "port-version": 4,
"description": "PROJ.4 library for cartographic projections",
"homepage": "https://github.com/OSGeo/PROJ",
"dependencies": [