mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
9be24a9d51
This adds -mlong-double-64 to make the size of a long double 64 bits in GCC builds to match MSVC builds.
43 lines
977 B
CMake
43 lines
977 B
CMake
|
|
list(APPEND SOURCE
|
|
cpp.c
|
|
data.c
|
|
dir.c
|
|
environ.c
|
|
file.c
|
|
headers.c
|
|
heap.c
|
|
locale.c
|
|
misc.c
|
|
scanf.c
|
|
signal.c
|
|
string.c
|
|
time.c)
|
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
|
printf.c # _CRT_NON_CONFORMING_SWPRINTFS
|
|
testlist.c)
|
|
|
|
add_executable(msvcrt_winetest
|
|
${SOURCE}
|
|
${PCH_SKIP_SOURCE})
|
|
|
|
target_compile_definitions(msvcrt_winetest PRIVATE
|
|
WINETEST_USE_DBGSTR_LONGLONG
|
|
_CRT_NONSTDC_NO_DEPRECATE
|
|
__msvcrt_ulong=ULONG)
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|
target_compile_options(msvcrt_winetest PRIVATE -Wno-format -Wno-stringop-truncation -Wno-overflow)
|
|
endif()
|
|
|
|
set_module_type(msvcrt_winetest win32cui)
|
|
add_importlibs(msvcrt_winetest advapi32 msvcrt kernel32)
|
|
target_link_libraries(msvcrt_winetest oldnames)
|
|
|
|
if(MSVC)
|
|
add_importlibs(msvcrt_winetest ntdll)
|
|
endif()
|
|
|
|
add_pch(msvcrt_winetest precomp.h "${PCH_SKIP_SOURCE}")
|
|
add_rostests_file(TARGET msvcrt_winetest)
|