aboutsummaryrefslogtreecommitdiff
path: root/ports/libsvm
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2020-05-02 06:28:55 +0800
committerGitHub <noreply@github.com>2020-05-01 15:28:55 -0700
commit0ab1a9e1c64a3968631b59647e771beda7d1f256 (patch)
tree5b4ff6d1fe12b2a6fcd0e560438e23289fe9ce13 /ports/libsvm
parentbc7d178e62c68adffc84ef8459eecde4a5ed5315 (diff)
downloadvcpkg-0ab1a9e1c64a3968631b59647e771beda7d1f256.tar.gz
vcpkg-0ab1a9e1c64a3968631b59647e771beda7d1f256.zip
[vcpkg] Add new function vcpkg_copy_tools (#8749)
* [vcpkg] Add new function vcpkg_copy_tools * [cpuinfo][czmq][nanomsg][uriparser] Use vcpkg_copy_tools * [czmq] Clean even tools are not copied [libsvm][zyre] Use vcpkg_copy_tools * [vcpkg-copy-tools] Clean debug/bin This should fix czmq build error * [czmq] czmq does not have BUILD_TOOLS option * [vcpkg] Split clean logic into another function * [cpuinfo][czmq][nanomsg][uriparser] Fix calling of vcpkg_copy_tools * [zyre] Fix regression error * [vcpkg] Update try_remove_empty_directory * [libsvm] Fix vcpkg_copy_tools call
Diffstat (limited to 'ports/libsvm')
-rw-r--r--ports/libsvm/CONTROL2
-rw-r--r--ports/libsvm/portfile.cmake23
2 files changed, 2 insertions, 23 deletions
diff --git a/ports/libsvm/CONTROL b/ports/libsvm/CONTROL
index 342536cce..4a9af6018 100644
--- a/ports/libsvm/CONTROL
+++ b/ports/libsvm/CONTROL
@@ -1,5 +1,5 @@
Source: libsvm
-Version: 323
+Version: 323-1
Description: A library for Support Vector Machines
Homepage: https://www.csie.ntu.edu.tw/~cjlin/libsvm/
diff --git a/ports/libsvm/portfile.cmake b/ports/libsvm/portfile.cmake
index f4f7c6960..e473fd3c3 100644
--- a/ports/libsvm/portfile.cmake
+++ b/ports/libsvm/portfile.cmake
@@ -30,29 +30,8 @@ vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/unofficial-${PORT})
-# Install tools
if ("tools" IN_LIST FEATURES)
- if(VCPKG_TARGET_IS_WINDOWS)
- set(EXECUTABLE_SUFFIX ".exe")
- else()
- set(EXECUTABLE_SUFFIX "")
- endif()
-
- foreach (libsvm_tool svm-predict svm-scale svm-toy svm-train)
- if (EXISTS ${CURRENT_PACKAGES_DIR}/bin/${libsvm_tool}${EXECUTABLE_SUFFIX})
- file(
- COPY ${CURRENT_PACKAGES_DIR}/bin/${libsvm_tool}${EXECUTABLE_SUFFIX}
- DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT}
- )
- file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/${libsvm_tool}${EXECUTABLE_SUFFIX})
- endif ()
-
- vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
- endforeach ()
-
- if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
- file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
- endif ()
+ vcpkg_copy_tools(TOOL_NAMES svm-predict svm-scale svm-toy svm-train AUTO_CLEAN)
endif ()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)