[CMAKE] Some options are only supported by GCC, don't use them for clang
[reactos.git] / modules / rostests / winetests / advpack / CMakeLists.txt
1
2 list(APPEND SOURCE
3 advpack.c
4 files.c
5 install.c
6 testlist.c)
7
8 add_executable(advpack_winetest ${SOURCE})
9
10 target_compile_definitions(advpack_winetest PRIVATE USE_WINE_TODOS)
11
12 if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
13 target_compile_options(advpack_winetest PRIVATE -Wno-format-overflow)
14 endif()
15
16 set_module_type(advpack_winetest win32cui)
17 add_importlibs(advpack_winetest advpack cabinet advapi32 msvcrt kernel32)
18 add_rostests_file(TARGET advpack_winetest)