diff --git a/vcpkg-overlay/ports/maa-fastdeploy/001-fix-export.patch b/vcpkg-overlay/ports/maa-fastdeploy/001-fix-export.patch new file mode 100644 index 0000000..569551c --- /dev/null +++ b/vcpkg-overlay/ports/maa-fastdeploy/001-fix-export.patch @@ -0,0 +1,21 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0745cde0..802da0e5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -146,7 +146,15 @@ + endif (APPLE) + + install(TARGETS fastdeploy_ppocr EXPORT fastdeploy_ppocrConfig) +-install(EXPORT fastdeploy_ppocrConfig DESTINATION share/fastdeploy_ppocr) ++ ++install(EXPORT fastdeploy_ppocrConfig ++ CONFIGURATIONS Release ++ DESTINATION share/fastdeploy_ppocr) ++ ++install(EXPORT fastdeploy_ppocrConfig ++ CONFIGURATIONS Debug ++ DESTINATION share/fastdeploy_ppocr) ++ + install( + DIRECTORY ${PROJECT_SOURCE_DIR}/fastdeploy + DESTINATION ${CMAKE_INSTALL_PREFIX}/include diff --git a/vcpkg-overlay/ports/maa-fastdeploy/portfile.cmake b/vcpkg-overlay/ports/maa-fastdeploy/portfile.cmake index 64ab702..15e4c93 100644 --- a/vcpkg-overlay/ports/maa-fastdeploy/portfile.cmake +++ b/vcpkg-overlay/ports/maa-fastdeploy/portfile.cmake @@ -5,6 +5,7 @@ vcpkg_from_github( SHA512 9a328a8113707d7883e128d74217f21bd5e7241e59773709b4e8894e4491cb47b363080231399d43ced4b118e3023aaf856bef2c5a573de5091d7740ec885213 PATCHES 000-fix-rpath.patch + 001-fix-export.patch ) vcpkg_cmake_configure( @@ -12,6 +13,7 @@ vcpkg_cmake_configure( ) vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME fastdeploy_ppocr CONFIG_PATH share/fastdeploy_ppocr) file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") diff --git a/vcpkg-overlay/ports/maa-fastdeploy/vcpkg.json b/vcpkg-overlay/ports/maa-fastdeploy/vcpkg.json index 57dad85..cab6ae8 100644 --- a/vcpkg-overlay/ports/maa-fastdeploy/vcpkg.json +++ b/vcpkg-overlay/ports/maa-fastdeploy/vcpkg.json @@ -16,6 +16,10 @@ { "name": "vcpkg-cmake", "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true } ] }