[FTP] Always link agains oldnames
authorJérôme Gardou <jerome.gardou@reactos.org>
Mon, 2 Nov 2020 09:47:44 +0000 (10:47 +0100)
committerJérôme Gardou <zefklop@users.noreply.github.com>
Mon, 28 Dec 2020 11:13:30 +0000 (12:13 +0100)
base/applications/network/ftp/CMakeLists.txt

index 2c52f4d..7609b31 100644 (file)
@@ -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()