My bad. This way it seems to work.
In order to sum up the thread:
- there’s no “official” way to check the standard that will be actually chosen when using
target_compile_features
- you can force a standard with
set_property(TARGET ${TARGET_NAME} PROPERTY CXX_STANDARD <value>)
Thanks again, regards
PS I’ll mark this comment as answer as it is merging all the provided information