Skip to content
Snippets Groups Projects

Use the CMAKE_CXX_STANDARD in feature tests

Merged Simon Praetorius requested to merge issue/cxx-standard-try-compile into master

Summary

In the MR !862 (merged) the enforcement of a c++ standard was changed from CXX_MAX_STANDARD to CMAKE_CXX_STANDARD. In the cmake feature tests, this was not used correctly. I have assumed that this global cmake variable is forwarded to the try_compile command, but it is not. With this MR the situation is fixed, by manually passing the globally set standard to the try_compile command.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading