# pthread requires special checks and flags to be added
if(THREADS_HAVE_PTHREAD_ARG)
  target_compile_options(PUBLIC czmq "-pthread")
endif()
if(CMAKE_THREAD_LIBS_INIT)
  target_link_libraries(czmq "${CMAKE_THREAD_LIBS_INIT}")
endif()


# pthread requires special checks and flags to be added
if(THREADS_HAVE_PTHREAD_ARG)
  target_compile_options(PUBLIC czmq "-pthread")
endif()
if(CMAKE_THREAD_LIBS_INIT)
  target_link_libraries(czmq "${CMAKE_THREAD_LIBS_INIT}")
endif()

# at least C99 is required for zdir which uses ‘for’ loop initial declarations
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")


Add C99 flag to CMake local hook, match autoconf
Add C99 flag to CMake local hook, match autoconf
