gz-sim: ๐ฉโ๐พ Windows build failures: Unknown CMake command "PROTOBUF_GENERATE_CPP".
Environment
- OS Version: Windows
- Source or binary build? source, branches off
main
(may also happen forign-gazebo5
branches)
Description
- Expected behavior: CI passes on Windows
- Actual behavior:
CI has been flaky on Windows with this error:
CMake Error at src/msgs/CMakeLists.txt:1 (PROTOBUF_GENERATE_CPP):
Unknown CMake command "PROTOBUF_GENERATE_CPP".
Iโm not sure yet whatโs causing the issue. See for example these 2 builds with the same setup, but different results:
- From #961
- That commit has set(protobuf_MODULE_COMPATIBLE TRUE)
- Ran on the
windows_mad
node
- From #983
- That commit has set(protobuf_MODULE_COMPATIBLE TRUE)
- Ran on the
windows_mad
node
Steps to reproduce
Run Windows CI a few times for branches off main
or ign-gazebo5
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (21 by maintainers)
@traversaro I updated #1168 with your suggestions and still failed: https://build.osrfoundation.org/job/ign_gazebo-pr-win/3366/
I may be wrong, but I think that if
protobuf_MODULE_COMPATIBLE
is in the cache, theoption
command does nothing (so it does not change the value ofprotobuf_MODULE_COMPATIBLE
) regardless of the value ofCMP0077
, but I may be wrong.Iโll take some time to reproduce this error locally consistently before opening a new fix PR though.