https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6fcd9f318413550eaff4c…
commit 6fcd9f318413550eaff4ce4f5c81de6ce959e11b
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Mon Nov 2 10:47:44 2020 +0100
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Mon Dec 28 12:13:30 2020 +0100
[FTP] Always link agains oldnames
---
base/applications/network/ftp/CMakeLists.txt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/base/applications/network/ftp/CMakeLists.txt
b/base/applications/network/ftp/CMakeLists.txt
index 2c52f4d4974..7609b313c35 100644
--- a/base/applications/network/ftp/CMakeLists.txt
+++ b/base/applications/network/ftp/CMakeLists.txt
@@ -1,6 +1,4 @@
-add_definitions(-Dlint)
-
list(APPEND SOURCE
cmds.c
cmdtab.c
@@ -12,12 +10,14 @@ list(APPEND SOURCE
precomp.h)
add_executable(ftp ${SOURCE} ftp.rc)
+target_compile_definitions(ftp PRIVATE lint)
+
set_module_type(ftp win32cui)
add_importlibs(ftp ws2_32 iphlpapi msvcrt kernel32)
+target_link_libraries(ftp oldnames)
add_pch(ftp precomp.h SOURCE)
if(MSVC)
- target_link_libraries(ftp oldnames)
add_importlibs(ftp ntdll)
endif()