I\'m using VS 15.3, which supports integrated CMake 3.8. How can I target C++17 without writing flags for each specific compilers? My current global settings don\'t work:
Modern CMake propose an interface for this purpose target_compile_features. Documentation is here: Requiring Language Standards
target_compile_features
Use it like this:
target_compile_features(${TARGET_NAME} PRIVATE cxx_std_17)