C_STANDARD is set to invalid value '17'
I have a C project, that uses features from C17.
when I try to enable this in my target using target_compile_features(App PRIVATE c_std_17)
it returns this error on building:
CMake Error at CMakeLists.txt:14 (add_executable): C_STANDARD is set to invalid value '17'
I checked my compiler (apple-clang 12) and it does support c17 and compiling from the terminal directly works.
one important notice, is that the previous command will work if I try
target_compile_features(App PRIVATE c_std_11)