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
# Prerelease versions cannot be passed in directly via the find_package command,
# so we allow users to specify it in a variable
if(NOT DEFINED "${PACKAGE_FIND_NAME}_FIND_VERSION_PRERELEASE") // fixed
set("${${PACKAGE_FIND_NAME}_FIND_VERSION_PRERELEASE}" "") // not fixed
else()
The remaining warnings are due to the camel case to uppercase conversion dereferencing variables that weren't set.
Here's the patch I'm currently using to workaround the issue. However, I wasn't sure of what behavior the set(${UPPER} call should have if ${Camel} is undefined.
What version of protobuf and what language are you using?
Version: main
Language: C++
What operating system (Linux, Windows, ...) and version?
Windows 11 24H2
What runtime / compiler are you using (e.g., python version or gcc version)
cmake 3.30.5
msvc 19.41.34123.0
What did you do?
Steps to reproduce the behavior:
find_package(Protobuf CONFIG)
Configure CMake using '--warn-uninitialized'
What did you expect to see
No warnings/errors
What did you see instead?
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
The first two warnings are related to #1778. However, that change failed to correct the similar variable dereference in the subsequent 'set'.
Code
The remaining warnings are due to the camel case to uppercase conversion dereferencing variables that weren't set.
Code
Anything else we should know about your project / environment
The text was updated successfully, but these errors were encountered: