cmake: fix building dns-example under win32 (missing getopt)

This commit is contained in:
Azat Khuzhin 2016-01-12 01:57:07 +03:00
parent bb6b53d031
commit a1609a87d7

View File

@ -889,6 +889,12 @@ if (NOT EVENT__DISABLE_SAMPLES)
add_dependencies(${SAMPLE} event_extra) add_dependencies(${SAMPLE} event_extra)
endforeach() endforeach()
if (WIN32)
target_sources(dns-example PUBLIC
WIN32-Code/getopt.c
WIN32-Code/getopt_long.c)
endif()
endif() endif()
if (NOT EVENT__DISABLE_BENCHMARK) if (NOT EVENT__DISABLE_BENCHMARK)