Skip to content

Commit

Permalink
cmake: fix building dns-example under win32 (missing getopt)
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Jan 14, 2016
1 parent bb6b53d commit a1609a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit a1609a8

Please sign in to comment.