Message ID | 20180209030904.22370-3-jgg@ziepe.ca (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/buildlib/RDMA_EnableCStd.cmake b/buildlib/RDMA_EnableCStd.cmake index c8a8c1f5530c13..c2e170929b7dde 100644 --- a/buildlib/RDMA_EnableCStd.cmake +++ b/buildlib/RDMA_EnableCStd.cmake @@ -49,6 +49,8 @@ function(RDMA_EnableCStd) CHECK_C_COMPILER_FLAG("-std=gnu11" SUPPORTS_GNU11) if (SUPPORTS_GNU11) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11" PARENT_SCOPE) + else() + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99" PARENT_SCOPE) endif() else() # Newer cmake can do this internally