microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.81k stars 6.3k forks source link

[zeroc-ice] Using find_package(Ice COMPONENTS Ice Glacier2 REQUIRED) fails, missing: Ice_SLICE_DIR #40635

Open zhouniandi opened 3 weeks ago

zhouniandi commented 3 weeks ago

Describe the bug After installing zeroc-ice with vcpkg, missing: Ice_SLICE_DIR Ice_LIBRARY_Ice_REQUIRED_LIBS_FOUND by CMake.

Environment

To Reproduce Steps to reproduce the behavior:

  1. vcpkg install zeroc-ice
  2. Write a CMake project and include the following lines:
    find_package(Ice COMPONENTS Ice Glacier2 REQUIRED)
    target_link_libraries(honeybee ${Boost_LIBRARIES} ${Ice_LIBRARIES} simdjson::simdjson unofficial::sqlite3::sqlite3 unordered_dense::unordered_dense croncpp::croncpp spdlog::spdlog)
  3. Configure your project. CMake should give the following error: "Failed to find all Ice components (missing: Ice_SLICE_DIR)".

Expected behavior Failed to find all Ice components (missing: Ice_SLICE_DIR Ice_LIBRARY

Failure logs -- Ice version: 3.7.9 -- The following Ice libraries were not found: -- Ice (required) -- Glacier2 (required) CMake Error at D:/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message): -- Configuring incomplete, errors occurred! Failed to find all Ice components (missing: Ice_SLICE_DIR Ice_LIBRARY _Ice_REQUIRED_LIBS_FOUND) (found version "3.7.9") Call Stack (most recent call first): D:/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) D:/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.28/Modules/FindIce.cmake:544 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) F:/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package) CMakeLists.txt:11 (find_package)

[0/1] Re-running CMake... FAILED: build.ninja

全部生成 失败。

Additional context Add any other context about the problem here.

dg0yt commented 2 weeks ago

I should re-start https://github.com/microsoft/vcpkg/pull/33648.