mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 05:29:00 +08:00
[embree3] fix Unknown CMake command find_dependency (#29381)
* fix Unknown CMake command find_dependency * x-add-version
This commit is contained in:
parent
b28cddc45f
commit
3004382fdf
@ -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}")
|
||||
|
||||
|
@ -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",
|
||||
|
@ -2198,7 +2198,7 @@
|
||||
},
|
||||
"embree3": {
|
||||
"baseline": "3.13.5",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"enet": {
|
||||
"baseline": "1.3.17",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "dcd33aea68c2058b380f0617fe5524a3939c3ac7",
|
||||
"version": "3.13.5",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "c4200bba761b3e04d73761b712080ade013f8763",
|
||||
"version": "3.13.5",
|
||||
|
Loading…
Reference in New Issue
Block a user