[embree3] fix Unknown CMake command find_dependency (#29381)

* fix Unknown CMake command find_dependency

* x-add-version
This commit is contained in:
Long Huan 2023-02-03 08:53:13 +08:00 committed by GitHub
parent b28cddc45f
commit 3004382fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 5 deletions

View File

@ -53,7 +53,7 @@ vcpkg_cmake_configure(
-DEMBREE_TUTORIALS=OFF
-DEMBREE_STATIC_RUNTIME=${EMBREE_STATIC_RUNTIME}
-DEMBREE_STATIC_LIB=${EMBREE_STATIC_LIB}
-DEMBREE_INSTALL_DEPENDENCIES=OFF
-DEMBREE_INSTALL_DEPENDENCIES=OFF
)
vcpkg_cmake_install()
@ -64,12 +64,12 @@ set(config_file "${CURRENT_PACKAGES_DIR}/share/embree/embree-config.cmake")
file(READ "${config_file}" contents)
string(REPLACE "SET(EMBREE_BUILD_TYPE Release)" "" contents "${contents}")
string(REPLACE "/../../../" "/../../" contents "${contents}")
string(REPLACE "FIND_PACKAGE" "find_dependency" contents "${contents}")
string(REPLACE "REQUIRED" "" contents "${contents}")
string(REPLACE "FIND_PACKAGE" "include(CMakeFindDependencyMacro)\n find_dependency" contents "${contents}")
string(REPLACE "REQUIRED" "COMPONENTS" contents "${contents}")
string(REPLACE "/lib/cmake/embree-${VERSION}" "/share/embree" contents "${contents}")
if(NOT VCPKG_BUILD_TYPE)
string(REPLACE "/lib/embree3.lib" "$<$<CONFIG:DEBUG>:/debug>/lib/embree3.lib" contents "${contents}")
string(REPLACE "/lib/embree3.lib" "$<$<CONFIG:DEBUG>:/debug>/lib/embree3.lib" contents "${contents}")
endif()
file(WRITE "${config_file}" "${contents}")

View File

@ -1,6 +1,7 @@
{
"name": "embree3",
"version": "3.13.5",
"port-version": 1,
"description": "High Performance Ray Tracing Kernels.",
"homepage": "https://github.com/embree/embree",
"license": "Apache-2.0",

View File

@ -2198,7 +2198,7 @@
},
"embree3": {
"baseline": "3.13.5",
"port-version": 0
"port-version": 1
},
"enet": {
"baseline": "1.3.17",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "dcd33aea68c2058b380f0617fe5524a3939c3ac7",
"version": "3.13.5",
"port-version": 1
},
{
"git-tree": "c4200bba761b3e04d73761b712080ade013f8763",
"version": "3.13.5",