Skip to content

Should ELFIO use C++ 11 CMake var? #59

Answered by a4z
serge1 asked this question in Q&A
Discussion options

You must be logged in to vote

I think this is absolutely fine,

however, since there is nothing to compile, only tests and examples, and those should be disabled when you package the library, it has no effect for the cmake install, or, if you build a package.

For the real compilation of elfio it will be used with what ever the cpp file of the user will be compiled with, and this will be very likely c++11, 14 , 17, or soon 20

So it might be a good idea to make that value configurable, so you can build and run the tests with any C++ standard you want cmake to configure with, and if non is given, fall back to 11.
Than it is easy to test that you do not use anything that was deprecated / disabled in a standard

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@schultetwin1
Comment options

Answer selected by serge1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants