From aa0fc5cdca78ca903241b55ea6c64a7e8dc1eb7d Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sun, 29 Jul 2012 02:44:53 +0000 Subject: [PATCH] [GDI32_APITESTS] * Allow warnings when compiling with gcc. svn path=/trunk/; revision=56978 --- rostests/apitests/gdi32/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rostests/apitests/gdi32/CMakeLists.txt b/rostests/apitests/gdi32/CMakeLists.txt index 348ab39e3b0..2980df8e67c 100644 --- a/rostests/apitests/gdi32/CMakeLists.txt +++ b/rostests/apitests/gdi32/CMakeLists.txt @@ -61,6 +61,12 @@ list(APPEND SOURCE init.c testlist.c) +if(NOT MSVC) + # FIXME: http://www.cmake.org/Bug/view.php?id=12998 + #allow_warnings(gdi32_apitest) + set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error") +endif() + add_executable(gdi32_apitest ${SOURCE}) target_link_libraries(gdi32_apitest wine ${PSEH_LIB}) set_module_type(gdi32_apitest win32cui)