[CRT] Add missing posix error codes
[reactos.git] / sdk / lib / 3rdparty / adns / CMakeLists.txt
1
2 include_directories(
3 src
4 adns_win32)
5
6 add_definitions(
7 -D_DLL -D__USE_CRTIMP
8 -DADNS_JGAA_WIN32
9 -D_CRT_NO_POSIX_ERROR_CODES)
10
11 list(APPEND SOURCE
12 adns_win32/adns_unix_calls.c
13 src/check.c
14 src/event.c
15 src/general.c
16 src/parse.c
17 src/poll.c
18 src/query.c
19 src/reply.c
20 src/setup.c
21 src/transmit.c
22 src/types.c
23 src/internal.h)
24
25 add_library(adns ${SOURCE})
26
27 if(NOT MSVC)
28 add_target_compile_flags(adns "-Wno-unused-but-set-variable")
29 endif()
30
31 add_dependencies(adns psdk)
32 add_pch(adns src/internal.h SOURCE)