mirror of https://github.com/microsoft/vcpkg.git
[embree3] Fix target files cannot be found (#18146)
* [embree3] Fix target files cannot be found * Update version files
This commit is contained in:
parent
36000a1085
commit
482149c68b
|
|
@ -0,0 +1,18 @@
|
|||
diff --git a/common/cmake/package.cmake b/common/cmake/package.cmake
|
||||
index 8c89f5b..55cb2af 100644
|
||||
--- a/common/cmake/package.cmake
|
||||
+++ b/common/cmake/package.cmake
|
||||
@@ -114,10 +114,10 @@ ENDIF()
|
||||
# SET(EMBREE_CMAKEEXPORT_DIR "cmake")
|
||||
# SET(EMBREE_RELATIVE_ROOT_DIR ".")
|
||||
#ELSE()
|
||||
-SET(EMBREE_CMAKECONFIG_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/embree-${EMBREE_VERSION}")
|
||||
-SET(EMBREE_CMAKEEXPORT_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/embree-${EMBREE_VERSION}")
|
||||
+SET(EMBREE_CMAKECONFIG_DIR "share/embree")
|
||||
+SET(EMBREE_CMAKEEXPORT_DIR "share/embree")
|
||||
IF (WIN32)
|
||||
- SET(EMBREE_RELATIVE_ROOT_DIR "../../../")
|
||||
+ SET(EMBREE_RELATIVE_ROOT_DIR "../..")
|
||||
ELSE()
|
||||
FILE(RELATIVE_PATH EMBREE_RELATIVE_ROOT_DIR "/${EMBREE_CMAKECONFIG_DIR}" "/")
|
||||
ENDIF()
|
||||
|
|
@ -10,6 +10,7 @@ vcpkg_from_github(
|
|||
fix-path.patch
|
||||
fix-static-usage.patch
|
||||
cmake_policy.patch
|
||||
fix-targets-file-not-found.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} static EMBREE_STATIC_LIB)
|
||||
|
|
@ -22,11 +23,11 @@ if (NOT VCPKG_TARGET_IS_OSX)
|
|||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
avx EMBREE_ISA_AVX
|
||||
avx2 EMBREE_ISA_AVX2
|
||||
avx512 EMBREE_ISA_AVX512
|
||||
sse2 EMBREE_ISA_SSE2
|
||||
sse42 EMBREE_ISA_SSE42
|
||||
avx EMBREE_ISA_AVX
|
||||
avx2 EMBREE_ISA_AVX2
|
||||
avx512 EMBREE_ISA_AVX512
|
||||
sse2 EMBREE_ISA_SSE2
|
||||
sse42 EMBREE_ISA_SSE42
|
||||
)
|
||||
elseif (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
list(LENGTH FEATURES FEATURE_COUNT)
|
||||
|
|
@ -59,18 +60,18 @@ vcpkg_configure_cmake(
|
|||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/embree-${EMBREE3_VERSION} TARGET_PATH share/embree)
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/embree TARGET_PATH share/embree)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
endif()
|
||||
if(APPLE)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/uninstall.command ${CURRENT_PACKAGES_DIR}/debug/uninstall.command)
|
||||
file(REMOVE "${CURRENT_PACKAGES_DIR}/uninstall.command" "${CURRENT_PACKAGES_DIR}/debug/uninstall.command")
|
||||
endif()
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/doc ${CURRENT_PACKAGES_DIR}/share/${PORT}/)
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/share/doc" "${CURRENT_PACKAGES_DIR}/share/${PORT}/")
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "embree3",
|
||||
"version-semver": "3.12.2",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "High Performance Ray Tracing Kernels.",
|
||||
"homepage": "https://github.com/embree/embree",
|
||||
"dependencies": [
|
||||
|
|
|
|||
|
|
@ -1842,7 +1842,7 @@
|
|||
},
|
||||
"embree3": {
|
||||
"baseline": "3.12.2",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"enet": {
|
||||
"baseline": "1.3.16",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "04c9ff8d31137bc08cd37662050a41dd5f1d8ecf",
|
||||
"version-semver": "3.12.2",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "d0b90c66c1c8be2574ff610fe1fda718e8b87b78",
|
||||
"version-semver": "3.12.2",
|
||||
|
|
|
|||
Loading…
Reference in New Issue