diff options
| author | Larry-Hu <v-daih@microsoft.com> | 2019-05-20 01:41:52 -0700 |
|---|---|---|
| committer | Larry-Hu <v-daih@microsoft.com> | 2019-05-20 01:41:52 -0700 |
| commit | a37e5cf0a4c72d9bf729f4bb6e8dd662d646fb9b (patch) | |
| tree | 009e9969af9cfe7db9c017b821eddfd6bc31cb26 | |
| parent | 7bef7a9ca1114320b500f586ca578799e28f3ec7 (diff) | |
| download | vcpkg-a37e5cf0a4c72d9bf729f4bb6e8dd662d646fb9b.tar.gz vcpkg-a37e5cf0a4c72d9bf729f4bb6e8dd662d646fb9b.zip | |
[sentencepiece]Add new port
| -rw-r--r-- | ports/sentencepiece/portfile.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ports/sentencepiece/portfile.cmake b/ports/sentencepiece/portfile.cmake index 1c10dc74d..2623acac1 100644 --- a/ports/sentencepiece/portfile.cmake +++ b/ports/sentencepiece/portfile.cmake @@ -21,10 +21,10 @@ vcpkg_configure_cmake( vcpkg_install_cmake()
-if((NOT VCPKG_CMAKE_SYSTEM_NAME) AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
- file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
- file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
- file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
+if(NOT VCPKG_CMAKE_SYSTEM_NAME)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/sentencepiece.lib ${CURRENT_PACKAGES_DIR}/debug/lib/sentencepieced.lib)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/sentencepiece_train.lib ${CURRENT_PACKAGES_DIR}/debug/lib/sentencepiece_traind.lib)
endif()
|
