Don't use CMAKE_C_STANDARD, it doesn't work on all versions of CMake. It doesn't work at all prior to CMake 3.1 and, even in newer versions of CMake, it doesn't support all the vendor compilers out there for various UNIXes.