I’ve found a temporary solution by replacing the line
SET(CMAKE_C_FLAGS "-std=gnu99")
by
SET(CMAKE_C_FLAGS "-std=gnu99" CACHE STRING "" FORCE)
More Related Contents:
- How to build x86 and/or x64 on Windows from command line with CMAKE?
- Is there a way to use gcc to convert C to MIPS?
- How to link to the C math library with CMake?
- Embed resources (eg, shader code; images) into executable/library with CMake
- How to compile an MPI included c program using cmake
- How to copy directory from source tree to binary tree?
- Error while configuring CMake project: Running ‘nmake’ ‘-?’ failed
- Tool to analyze size of ELF sections and symbol
- How to migrate this Make and Autotools project with multiple source subdirectories to CMake?
- How to work with external libraries when cross compiling?
- What is the default generator for CMake in Windows?
- Can Windows Store applications be built with Mingw?
- inlining failed in call to always_inline ‘_mm_mullo_epi32’: target specific option mismatch
- Bit manipulation, return 0 if x != 0, or nonzero otherwise
- Cascaded and nested if statements in C programming language
- Inserting linked list at the end [closed]
- Case Insensitive String Comparison in C
- What is the full “for” loop syntax in C?
- In C, why is sizeof(char) 1, when ‘a’ is an int?
- Performance of 2-dimensional array vs 1-dimensional array
- Are there any downsides to passing structs by value in C, rather than passing a pointer?
- What is the purpose of the unary plus (+) operator in C?
- what’s the difference between the printf and vprintf function families, and when should I use one over the other?
- dynamic allocating array of arrays in C
- Trying to generate 9 digit numbers with each unique digits
- Why does printf print random value with float and integer format specifier
- Pointer arithmetic when void has unknown size [closed]
- How do you write a C program to execute another program?
- How to get the size of a C function from inside a C program or with inline assembly?
- What’s the difference between “C system calls” and “C library routines”?