[opensubdiv] Enable support Linux and MacOS (#14276)

This commit is contained in:
Lily 2020-10-31 03:53:55 +08:00 committed by GitHub
parent 416bb1c677
commit 6a437abcde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "linux" "osx" "uwp")
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "uwp")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
@ -10,6 +10,14 @@ vcpkg_from_github(
fix_compile-option.patch
)
if(VCPKG_TARGET_IS_LINUX)
message(
"OpenSubdiv currently requires the following libraries from the system package manager:
xinerama
These can be installed on Ubuntu systems via sudo apt install libxinerama-dev")
endif()
vcpkg_find_acquire_program(PYTHON2)
get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY)
vcpkg_add_to_path("${PYTHON2_DIR}")

View File

@ -3,5 +3,5 @@
"version-string": "3.4.3",
"description": "An Open-Source subdivision surface library.",
"homepage": "https://github.com/PixarAnimationStudios/OpenSubdiv",
"supports": "windows & !arm & !uwp"
"supports": "!arm & !uwp"
}