Permalink
Browse files

cmake: compile in C99

  • Loading branch information...
Snaipe committed May 21, 2017
1 parent 93e622f commit 06c1cb3b45055c867394b4266a8c590e060a67d2
Showing with 4 additions and 0 deletions.
  1. +4 −0 CMakeLists.txt
@@ -12,6 +12,10 @@ include (CheckSymbolExists)
include (CheckCSourceCompiles)
include (GNUInstallDirs)

if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra -pedantic")
endif ()

list (APPEND CMAKE_REQUIRED_DEFINITIONS
-D_GNU_SOURCE
-D_CRT_RAND_S

0 comments on commit 06c1cb3

Please sign in to comment.