-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect more c++ standards and make sure useful message actually appears #635
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -93,8 +93,12 @@ if(NOT DEFINED ROOT_CXX_STANDARD) | |||||||
set(ROOT_CXX_STANDARD 17) | ||||||||
elseif("cxx_std_20" IN_LIST ROOT_COMPILE_FEATURES) | ||||||||
set(ROOT_CXX_STANDARD 20) | ||||||||
elseif("cxx_std_14" IN_LIST ROOT_COMPILE_FEATURES) | ||||||||
set(ROOT_CXX_STANDARD 14) | ||||||||
elseif("cxx_std_11" IN_LIST ROOT_COMPILE_FEATURES) | ||||||||
set(ROOT_CXX_STANDARD 11) | ||||||||
else() | ||||||||
message(FATAL_ERROR "ROOT C++ could not be detected") | ||||||||
message(WARNING "ROOT c++ standard could not be detected") | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This I don't understand, if the standard can't be detected then that's possibly going to cause some problems later on, no? And after 11 to 20 are included this shouldn't happen anyway? Didn't ROOT change not too long ago how they define the standard? That now would build fine but with maybe different standards in ROOT and podio. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIUC an undefined Lines 101 to 103 in 76990a9
Which would at least tell people what a potential problem could be rather, than a rather cryptic error about not being able to detect a c++ standard. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yes I was thinking |
||||||||
endif() | ||||||||
endif() | ||||||||
|
||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason not to put these in order? 11, 14, 17, 20, else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly laziness. ;) I will order them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or simply a loop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a loop now.