From a1609a87d7553f256c1651a4835e3f4a3a3dba44 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 12 Jan 2016 01:57:07 +0300 Subject: [PATCH] cmake: fix building dns-example under win32 (missing getopt) --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4acb9961..708f8a1b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- 2.50.1