Commit 42b8a8cccd6ad1a4f990315f1c9710fa9a007f63

Authored by Enrique Díaz Roque
2 parents d107fa3f f140cf55
Exists in master and in 1 other branch dev

Merge branch 'dev' of bizet.dis.ulpgc.es:ediaz/heisenwave into dev

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)
... ...