Commit f140cf5520781ae147aac6b03bf90776aea6edaf

Authored by Calvin Bulla
1 parent 8e021097
Exists in master and in 1 other branch dev

Added C Standard Flag

Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
app/CMakeLists.txt
... ... @@ -24,7 +24,13 @@ else(APPLE)
24 24 set(SYSTEM_TYPE "OS_NONE")
25 25 endif(APPLE)
26 26  
27   -add_definitions(-std=c99 -D${SYSTEM_TYPE})
  27 +if(UNIX AND NOT APPLE)
  28 + set(CSTD "gnu99")
  29 +else()
  30 + set(CSTD "c99")
  31 +endif(UNIX AND NOT APPLE)
  32 +
  33 +add_definitions(-std=${CSTD} -D${SYSTEM_TYPE})
28 34  
29 35 add_subdirectory(lib/glfw)
30 36 include_directories(lib/glew/include)
... ...