0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 15:41:05 +08:00

Fix build on SL6.9. Fix #3603.

This commit is contained in:
bl 2019-08-01 05:43:55 +02:00
parent a8d19057b1
commit 45243cd009

View File

@ -67,6 +67,8 @@ endif()
check_c_compiler_flag("-std=gnu11" COMPILER_SUPPORTS_C11)
if(COMPILER_SUPPORTS_C11)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11")
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
endif()
if(NOT MSVC)