From c969fad3f99c5c6b0ef50d7f30a66d0a12c59d2c Mon Sep 17 00:00:00 2001 From: Manuel Massing Date: Mon, 28 Nov 2016 14:59:41 +0100 Subject: [proj] Rename library to "proj.lib" / "projd.lib" --- ports/proj/portfile.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3