add_importlibs(tftpd advapi32 ws2_32 iphlpapi msvcrt kernel32)
add_cd_file(TARGET tftpd DESTINATION reactos/system32 FOR all)
-if((NOT MSVC) OR USE_CLANG_CL)
+if(GCC OR CLANG)
target_compile_options(tftpd PRIVATE -Wno-format-overflow)
endif()
add_importlibs(libxslt ntdll)
endif()
-if ((NOT MSVC) OR USE_CLANG_CL)
+if(GCC OR CLANG)
target_compile_options(libxslt PRIVATE -Wno-misleading-indentation -Wno-pointer-sign -Wno-unused-function)
endif()
add_pch(libxslt precomp.h SOURCE)
add_cd_file(TARGET libxslt DESTINATION reactos/system32 FOR all)
-
add_library(msvcrtex ${MSVCRTEX_SOURCE} ${msvcrtex_asm})
target_compile_definitions(msvcrtex PRIVATE _DLL _MSVCRTEX_)
-if ((NOT MSVC) OR USE_CLANG_CL)
+if(GCC OR CLANG)
target_compile_options(msvcrtex PRIVATE $<$<COMPILE_LANGUAGE:C>:-Wno-main>)
- if (LTCG)
+ if(LTCG)
target_compile_options(msvcrtex PRIVATE -fno-lto)
endif()
endif()
set_source_files_properties(startup/crtexe.c
startup/wcrtexe.c PROPERTIES COMPILE_DEFINITIONS _M_CEE_PURE)
-if (NOT MSVC)
+if(NOT MSVC)
target_link_libraries(msvcrtex oldnames)
endif()
add_dependencies(lwip bugcodes xdk)
add_pch(lwip precomp.h SOURCE)
-if((NOT MSVC) AND LTCG)
+if((NOT MSVC) AND LTCG)
target_compile_options(lwip PRIVATE -fno-builtin-malloc -fno-builtin-free)
endif()
# Disable warnings
add_compile_options(
- /wd4146 # " unary minus operator applied to unsigned type, result still unsigned"
+ /wd4146 # "unary minus operator applied to unsigned type, result still unsigned"
/wd4244) # "'=': conversion from 'a' to 'b', possible loss of data"
endif()