add_library(gnu17 INTERFACE) target_compile_options(gnu17 INTERFACE $<$:-std=gnu++17>) target_link_libraries(app PRIVATE gnu17)