mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 11:19:01 +08:00
87179c1b43
* [hwloc] update to 2.7.0 * update version * update patch * update version * fix-osx-support * update version * set CoreFoundation * update version * reset CoreFoundation * update version * [hpx] Fix dependency hwloc * version * [hpx] Add osx component iokit * overwrite hpx version * version * update version * osx support * overwrite version * add license * format-manifest * update version * add license * update version Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
70 lines
2.7 KiB
CMake
70 lines
2.7 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO open-mpi/hwloc
|
|
REF 6fa8466a9c9c28de8ca3bd9e879c426edd85decf # hwloc-2.7.0
|
|
SHA512 33bcc30362ba27076eacc83327a9d6235e2914a3c64536631e05e2d44c2c12b0176d55cc42ec0dc3c80682b977a83e60bd3a41f3ef486581cf8afa62ad2e9516
|
|
PATCHES
|
|
fix_shared_win_build.patch
|
|
)
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
|
set(OPTIONS ac_cv_prog_cc_c99= # To avoid the compiler check for C99 which will fail for MSVC
|
|
--disable-plugin-dlopen)
|
|
endif()
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
list(APPEND OPTIONS "HWLOC_LDFLAGS=-no-undefined")
|
|
elseif(VCPKG_TARGET_IS_OSX)
|
|
list(APPEND OPTIONS "HWLOC_LDFLAGS=-framework CoreFoundation")
|
|
endif()
|
|
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
AUTOCONFIG
|
|
OPTIONS
|
|
${OPTIONS}
|
|
--disable-libxml2
|
|
--disable-opencl
|
|
--disable-cairo
|
|
--disable-cuda
|
|
--disable-libudev
|
|
--disable-levelzero
|
|
--disable-nvml
|
|
--disable-rsmi
|
|
--disable-pci
|
|
#--disable-cpuid
|
|
#--disable-picky
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/tools/hwloc/bin/hwloc-compress-dir")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/hwloc/bin/hwloc-compress-dir" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../..")
|
|
endif()
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/tools/hwloc/debug/bin/hwloc-compress-dir")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/hwloc/debug/bin/hwloc-compress-dir" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../..")
|
|
endif()
|
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/tools/hwloc/bin/hwloc-gather-topology")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/hwloc/bin/hwloc-gather-topology" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../..")
|
|
endif()
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/tools/hwloc/debug/bin/hwloc-gather-topology")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/hwloc/debug/bin/hwloc-gather-topology" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../..")
|
|
endif()
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/COPYING.txt"
|
|
"${CURRENT_PACKAGES_DIR}/debug/README.txt"
|
|
"${CURRENT_PACKAGES_DIR}/debug/NEWS.txt"
|
|
"${CURRENT_PACKAGES_DIR}/COPYING.txt"
|
|
"${CURRENT_PACKAGES_DIR}/README.txt"
|
|
"${CURRENT_PACKAGES_DIR}/NEWS.txt"
|
|
)
|