Closed printesoi closed 8 years ago
The C_STANDARD target property was added in CMake 3.1. The compilation using older versions of CMake, like 2.8.12 on Ubuntu 14.04 fails because the -std=c99 C flag is not added. The fix is to add -std=c99 to CMAKE_C_FLAGS for older cmake versions.
Signed-off-by: Victor Dodon dodonvictor@gmail.com
Thank you @printesoi :+1:
The C_STANDARD target property was added in CMake 3.1. The compilation using older versions of CMake, like 2.8.12 on Ubuntu 14.04 fails because the -std=c99 C flag is not added. The fix is to add -std=c99 to CMAKE_C_FLAGS for older cmake versions.
Signed-off-by: Victor Dodon dodonvictor@gmail.com