mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 01:39:01 +08:00
957d2024b8
* Update Ubuntu to 20.04. * [tfhe] Disable -Wall -Werror * [sophus] Disable -Werror. * Fix typo in deployment of CUDA. * Add libxxf86vm-dev for opensubdiv. * [opensubdiv] Fix OpenCL search on Ubuntu 20.04, and document libxxf86vm-dev dependency * [msgpack11] Disable -Werror. * [qtwayland, qt5wayland] Add system library notice. * Add python-is-python3 to unbreak tensorflow, v8, and others * [graphqlparser] Remove directive rejected by Bison 3.5.1 * [ogdf] Mark as failing in ci.baseline.txt. Issue filed https://github.com/microsoft/vcpkg/issues/18936 * [bde] Mark failing in ci.baseline.txt, issue filed https://github.com/microsoft/vcpkg/issues/18937 * [soem] Patch out -Werror * Update pool.
57 lines
1.9 KiB
CMake
57 lines
1.9 KiB
CMake
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "uwp")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO PixarAnimationStudios/OpenSubdiv
|
|
REF 82ab1b9f54c87fdd7e989a3470d53e137b8ca270 # 3.4.3
|
|
SHA512 607cb9aa05d83a24bc2102bfd28abfec58f5723b1c56f6f431111ebf98f105ff7ca2a77610953acd21f73cb74d8d8ec68db3aeb11be1f9ca56d87c36c58dd095
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix_compile-option.patch
|
|
fix-version-search.patch
|
|
)
|
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
|
message(
|
|
"OpenSubdiv currently requires the following libraries from the system package manager:
|
|
xinerama xxf86vm
|
|
|
|
These can be installed on Ubuntu systems via sudo apt install libxinerama-dev libxxf86vm-dev")
|
|
endif()
|
|
|
|
vcpkg_find_acquire_program(PYTHON2)
|
|
get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY)
|
|
vcpkg_add_to_path("${PYTHON2_DIR}")
|
|
|
|
if (VCPKG_CRT_LINKAGE STREQUAL static)
|
|
set(STATIC_CRT_LNK ON)
|
|
else()
|
|
set(STATIC_CRT_LNK OFF)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
|
OPTIONS
|
|
-DNO_DX=ON
|
|
-DNO_CUDA=ON
|
|
-DNO_EXAMPLES=ON
|
|
-DNO_TUTORIALS=ON
|
|
-DNO_REGRESSION=ON
|
|
-DNO_TESTS=ON
|
|
-DMSVC_STATIC_CRT=${STATIC_CRT_LNK}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
# # Moves all .cmake files from /debug/share/opensubdiv/ to /share/opensubdiv/
|
|
# # See /docs/maintainers/vcpkg_fixup_cmake_targets.md for more details
|
|
# vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/opensubdiv)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|