[Openvdb] Build Tools in static (#29989)

* [Openvdb] Build Tools in static

* update version

* add function

* vdb
This commit is contained in:
Frank 2023-03-15 06:00:01 +08:00 committed by GitHub
parent 4674f57bbb
commit b2b743ab90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 10 deletions

View File

@ -15,14 +15,12 @@ file(REMOVE "${SOURCE_PATH}/cmake/FindOpenEXR.cmake")
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" OPENVDB_STATIC)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" OPENVDB_SHARED)
set(OPENVDB_BUILD_TOOLS OFF)
if ("tools" IN_LIST FEATURES)
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
set(OPENVDB_BUILD_TOOLS ON)
else()
message(FATAL_ERROR "Unable to build tools if static libraries are required")
endif()
endif()
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
"tools" OPENVDB_BUILD_TOOLS
)
if ("ax" IN_LIST FEATURES)
if(NOT VCPKG_TARGET_IS_WINDOWS)

View File

@ -1,7 +1,7 @@
{
"name": "openvdb",
"version": "10.0.0",
"port-version": 1,
"port-version": 2,
"description": "Sparse volume data structure and tools",
"homepage": "https://github.com/dreamworksanimation/openvdb",
"license": "MPL-2.0",

View File

@ -5834,7 +5834,7 @@
},
"openvdb": {
"baseline": "10.0.0",
"port-version": 1
"port-version": 2
},
"openvpn3": {
"baseline": "3.7.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "65264bf4e9ac9e13e48374147f7b4454b8e45b97",
"version": "10.0.0",
"port-version": 2
},
{
"git-tree": "3b23307372371effd658ce072409367db12ed688",
"version": "10.0.0",