[CMAKE/CLANG-CL] Silence some clang-cl warnings in consistency with our gcc build.

This commit is contained in:
Amine Khaldi 2017-12-03 23:30:10 +01:00
parent 6fe9441d32
commit 00124d1b1a
29 changed files with 113 additions and 82 deletions

View file

@ -33,12 +33,11 @@ list(APPEND SOURCE
testlist.c)
add_executable(comctl32_winetest ${SOURCE} rsrc.rc)
if(USE_CLANG_CL OR (NOT MSVC))
add_target_compile_flags(comctl32_winetest "-Wno-format")
endif()
set_module_type(comctl32_winetest win32cui)
add_importlibs(comctl32_winetest comctl32 ole32 user32 gdi32 advapi32 msvcrt kernel32)
add_rostests_file(TARGET comctl32_winetest)
if(NOT MSVC)
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
#add_target_compile_flags(comctl32_winetest "-Wno-format")
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-format")
endif()