reactos/sdk/lib/3rdparty/adns/CMakeLists.txt
Victor Perevertkin 74ec94e12c [CMAKE] Some options are only supported by GCC, don't use them for clang
These are (so far):
-Wno-format-overflow
-Wno-nonnull-compare
-Wno-old-style-declaration
-Wno-unused-but-set-variable
2021-04-09 03:58:19 +03:00

33 lines
594 B
CMake

include_directories(
src
adns_win32)
add_definitions(
-D_DLL -D__USE_CRTIMP
-DADNS_JGAA_WIN32
-D_CRT_NO_POSIX_ERROR_CODES)
list(APPEND SOURCE
adns_win32/adns_unix_calls.c
src/check.c
src/event.c
src/general.c
src/parse.c
src/poll.c
src/query.c
src/reply.c
src/setup.c
src/transmit.c
src/types.c
src/internal.h)
add_library(adns ${SOURCE})
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_compile_options(adns PRIVATE -Wno-unused-but-set-variable)
endif()
add_dependencies(adns psdk)
add_pch(adns src/internal.h SOURCE)