mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 13:52:30 +00:00
85d7a38c41
Fixes GCC 8 warning: base/applications/network/telnet/src/tnmain.cpp:190:13: error: 'char* strcpy(char*, const char*)' accessing 1 byte at offsets [0, 2147483647] and [0, 2147483647] may overlap 1 byte at offset 0 [-Werror=restrict] strcpy(&buf[cursor],&buf[cursor+1]); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 lines
919 B
CMake
40 lines
919 B
CMake
|
|
set_cpp(WITH_EXCEPTIONS WITH_STL)
|
|
|
|
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
|
|
|
|
if(NOT MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
|
|
add_compile_flags("-Wno-restrict")
|
|
endif()
|
|
|
|
list(APPEND SOURCE
|
|
src/ansiprsr.cpp
|
|
src/keytrans.cpp
|
|
src/tcharmap.cpp
|
|
src/tconsole.cpp
|
|
src/tkeydef.cpp
|
|
src/tkeymap.cpp
|
|
src/tmapldr.cpp
|
|
src/tmouse.cpp
|
|
src/tnclass.cpp
|
|
src/tnclip.cpp
|
|
src/tncon.cpp
|
|
src/tnconfig.cpp
|
|
src/tnerror.cpp
|
|
src/tnetwork.cpp
|
|
src/tnmain.cpp
|
|
src/tnmisc.cpp
|
|
src/tscript.cpp
|
|
src/tscroll.cpp
|
|
src/ttelhndl.cpp
|
|
precomp.h)
|
|
|
|
if(NOT MSVC)
|
|
add_compile_flags_language("-Wno-narrowing" "CXX")
|
|
endif()
|
|
|
|
add_executable(telnet ${SOURCE} telnet.rc)
|
|
set_module_type(telnet win32cui)
|
|
add_importlibs(telnet ws2_32 user32 msvcrt kernel32 ntdll)
|
|
add_pch(telnet precomp.h SOURCE)
|
|
add_cd_file(TARGET telnet DESTINATION reactos/system32 FOR all)
|