mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Fix build on SL6.9. Fix #3603.
This commit is contained in:
parent
a8d19057b1
commit
45243cd009
@ -67,6 +67,8 @@ endif()
|
|||||||
check_c_compiler_flag("-std=gnu11" COMPILER_SUPPORTS_C11)
|
check_c_compiler_flag("-std=gnu11" COMPILER_SUPPORTS_C11)
|
||||||
if(COMPILER_SUPPORTS_C11)
|
if(COMPILER_SUPPORTS_C11)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11")
|
||||||
|
else()
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
|
Loading…
Reference in New Issue
Block a user