mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
cmake: fix building dns-example under win32 (missing getopt)
This commit is contained in:
parent
bb6b53d031
commit
a1609a87d7
@ -889,6 +889,12 @@ if (NOT EVENT__DISABLE_SAMPLES)
|
||||
|
||||
add_dependencies(${SAMPLE} event_extra)
|
||||
endforeach()
|
||||
|
||||
if (WIN32)
|
||||
target_sources(dns-example PUBLIC
|
||||
WIN32-Code/getopt.c
|
||||
WIN32-Code/getopt_long.c)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (NOT EVENT__DISABLE_BENCHMARK)
|
||||
|
Loading…
x
Reference in New Issue
Block a user