Require C++17 for public headers in CMakeLists#6627
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe build configuration for the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
|



Since #6592 that got released in assimp 6.0.5,
inline constexpris used in the public headers, that requires the downstream compilation units to be compiled with at least C++ standard 17 .Setting
TARGET_COMPILE_FEATURES(assimp PUBLIC cxx_std_17)ensures that any downstream compilation unit that linksassimp::assimpis aware of this, and raise if possible and necessary the C++ standard used for compilation to C++17, avoiding errors like:Summary by CodeRabbit