You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When find_package(ONNX CONFIG REQUIRED) is called from user CMakeLists.txt the user gets the following CMake warning.
CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:441 (message):
The package name passed to find_package_handle_standard_args (Protobuf)
does not match the name of the calling package (protobuf). This can lead
to problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
build/vcpkg_installed/x64-windows/share/protobuf/protobuf-module.cmake:162 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
build/vcpkg_installed/x64-windows/share/protobuf/protobuf-config.cmake:21 (include)
build/vcpkg_installed/x64-windows/share/protobuf/vcpkg-cmake-wrapper.cmake:3 (_find_package)
C:/repos/vcpkg/scripts/buildsystems/vcpkg.cmake:847 (include)
C:/Program Files/CMake/share/cmake-3.31/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
build/vcpkg_installed/x64-windows/share/ONNX/ONNXConfig.cmake:10 (find_dependency)
C:/repos/vcpkg/scripts/buildsystems/vcpkg.cmake:893 (_find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
Proposed solution
Avoid the warning by using the correct name for Protobuf. The first letter should be uppercase.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
When find_package(ONNX CONFIG REQUIRED) is called from user CMakeLists.txt the user gets the following CMake warning.
Proposed solution
Avoid the warning by using the correct name for Protobuf. The first letter should be uppercase.
The text was updated successfully, but these errors were encountered: