[LIBTIRPC]
[reactos.git] / reactos / dll / win32 / libtirpc / CMakeLists.txt
index f45fc75..bf566b0 100644 (file)
@@ -1,6 +1,6 @@
 remove_definitions(-D_WIN32_WINNT=0x502)
 add_definitions(-D_WIN32_WINNT=0x600)
-add_definitions(-DUNICODE -D_WIN32 -DPORTMAP)
+add_definitions(-DUNICODE -D_WIN32 -DPORTMAP -Dstrdup=_strdup)
 
 include_directories(${REACTOS_SOURCE_DIR}/dll/win32/libtirpc/tirpc)
 
@@ -94,11 +94,10 @@ add_library(libtirpc SHARED
 if(MSVC)
 else()
     # FIXME: Tons of warnings.
-    replace_compile_flags("-Werror" " ")
+    add_target_compile_flags(libtirpc "-w")
 endif()
 
 set_module_type(libtirpc win32dll)
-target_link_libraries(libtirpc user32 advapi32)
-add_importlibs(libtirpc kernel32 kernel32_vista ws2_32 msvcrt)
+add_importlibs(libtirpc user32 advapi32 kernel32_vista ws2_32 msvcrt kernel32 ntdll)
 add_delay_importlibs(libtirpc secur32)
 add_cd_file(TARGET libtirpc DESTINATION reactos/system32 FOR all)