diff options
Diffstat (limited to 'ports/cpuinfo')
| -rw-r--r-- | ports/cpuinfo/CONTROL | 2 | ||||
| -rw-r--r-- | ports/cpuinfo/portfile.cmake | 17 |
2 files changed, 5 insertions, 14 deletions
diff --git a/ports/cpuinfo/CONTROL b/ports/cpuinfo/CONTROL index 180b26043..0c349078e 100644 --- a/ports/cpuinfo/CONTROL +++ b/ports/cpuinfo/CONTROL @@ -1,5 +1,5 @@ Source: cpuinfo
-Version: 2019-07-28
+Version: 2019-07-28-1
Description: CPU INFOrmation library (x86/x86-64/ARM/ARM64, Linux/Windows/Android/macOS/iOS)
Homepage: https://github.com/pytorch/cpuinfo
diff --git a/ports/cpuinfo/portfile.cmake b/ports/cpuinfo/portfile.cmake index b5279e30d..9b3db8e45 100644 --- a/ports/cpuinfo/portfile.cmake +++ b/ports/cpuinfo/portfile.cmake @@ -47,19 +47,10 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
if(tools IN_LIST FEATURES)
- foreach(cpuinfo_tool cache-info cpuid-dump cpu-info isa-info)
- file(COPY
- ${CURRENT_PACKAGES_DIR}/bin/${cpuinfo_tool}${VCPKG_TARGET_EXECUTABLE_SUFFIX}
- DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT}
- )
- vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
- endforeach()
-
- if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
- file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
- else()
- # TODO: Fix it once this lib supports dynamic building.
- endif()
+ vcpkg_copy_tools(
+ TOOL_NAMES cache-info cpuid-dump cpu-info isa-info
+ AUTO_CLEAN
+ )
endif()
# Handle copyright
|
