diff options
| author | tony <13717910964@163.com> | 2018-05-26 16:23:16 +0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-05-29 15:00:11 -0700 |
| commit | 952023b48a1d9b771ebf1304358362f147f5ca23 (patch) | |
| tree | f72a51fba825e8570ac4bde8aa8d9d54dc6a6d31 | |
| parent | a3c14ae9203f870ab0ec353220db8a9aba4a707e (diff) | |
| download | vcpkg-952023b48a1d9b771ebf1304358362f147f5ca23.tar.gz vcpkg-952023b48a1d9b771ebf1304358362f147f5ca23.zip | |
fix: build proj4 on linux
| -rw-r--r-- | ports/proj4/portfile.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/proj4/portfile.cmake b/ports/proj4/portfile.cmake index bc4e66fcd..c6acc6cc8 100644 --- a/ports/proj4/portfile.cmake +++ b/ports/proj4/portfile.cmake @@ -59,12 +59,14 @@ string(REPLACE "set(_IMPORT_PREFIX \"${CURRENT_PACKAGES_DIR}\")" ) file(WRITE ${CURRENT_PACKAGES_DIR}/share/proj4/proj4-targets.cmake "${_contents}") +if(WIN32) if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") file(RENAME ${CURRENT_PACKAGES_DIR}/lib/proj_4_9.lib ${CURRENT_PACKAGES_DIR}/lib/proj.lib) endif() if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/proj_4_9_d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/projd.lib) endif() +endif() # Remove duplicate headers installed from debug build file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) |
