aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Massing <m.massing@warped-space.de>2016-11-28 14:59:41 +0100
committerManuel Massing <m.massing@warped-space.de>2016-11-28 15:02:51 +0100
commitc969fad3f99c5c6b0ef50d7f30a66d0a12c59d2c (patch)
treec0d5608dcbd88b566be3f0664adb2a8c4cf7de7e
parent524f716570aad90e3f7c3094af3eec8e548dec71 (diff)
downloadvcpkg-c969fad3f99c5c6b0ef50d7f30a66d0a12c59d2c.tar.gz
vcpkg-c969fad3f99c5c6b0ef50d7f30a66d0a12c59d2c.zip
[proj] Rename library to "proj.lib" / "projd.lib"
-rw-r--r--ports/proj/portfile.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/ports/proj/portfile.cmake b/ports/proj/portfile.cmake
index c67edb70c..88941291c 100644
--- a/ports/proj/portfile.cmake
+++ b/ports/proj/portfile.cmake
@@ -43,6 +43,15 @@ vcpkg_install_cmake(
-DPROJ4_TESTS=NO
)
+# Rename library and adapt cmake configuration
+# N.B. debug cmake export is not copied, as it's not relocatable
+file(READ ${CURRENT_PACKAGES_DIR}/share/proj/proj4-targets-release.cmake PROJ4_TARGETS_RELEASE)
+string(REPLACE "proj_4_9.lib" "proj.lib" PROJ4_TARGETS_RELEASE ${PROJ4_TARGETS_RELEASE})
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/proj/proj4-targets-release.cmake ${PROJ4_TARGETS_RELEASE})
+
+file(RENAME ${CURRENT_PACKAGES_DIR}/lib/proj_4_9.lib ${CURRENT_PACKAGES_DIR}/lib/proj.lib)
+file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/proj_4_9_d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/projd.lib)
+
# Remove duplicate headers installed from debug build
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Remove data installed from debug build