diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-04-13 13:49:43 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-04-13 13:49:43 +0200 |
commit | d5391142f7c44cd27384c3af9ebf5bc51f916caa (patch) | |
tree | aca031b2661ed4133f6f0149a0b47425891d4686 | |
parent | db78f2a70f3c7e6aa15a9c8b42b07a46ca69598b (diff) | |
download | tigervnc-d5391142f7c44cd27384c3af9ebf5bc51f916caa.tar.gz tigervnc-d5391142f7c44cd27384c3af9ebf5bc51f916caa.zip |
Make sure we get C99
The compiler might default to something older, so make sure we get
the features we need.
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ca1e85b6..a63288a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,6 +68,9 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -UNDEBUG") set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -UNDEBUG") set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -UNDEBUG") +# Make sure we get a sane C version +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") + # Tell the compiler to be stringent set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wformat=2") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wformat=2") |