Commit 33869b5
fix: set CMAKE_CXX_STANDARD before project() for correct Conan profile on Windows
conan_provider.cmake fires during project() via CMAKE_PROJECT_TOP_LEVEL_INCLUDES,
before the previous CMAKE_CXX_STANDARD=17 assignment at line 53. MSVC defaults to
C++14, causing protobuf/6.33.5 (which requires C++17) to fail validation on Windows.
Moving the standard declaration above project() ensures conan_provider.cmake always
detects cppstd=17 regardless of platform.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 218c9ce commit 33869b5
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
0 commit comments