[ROSAPPS] put -Wno-unused-but-set-variable between a if(NOT MSVC) to really make...
[reactos.git] / rosapps / applications / sysutils / pedump / CMakeLists.txt
index 1acb8b4..b2805cb 100644 (file)
@@ -1,6 +1,8 @@
 
 add_executable(pedump pedump.c pedump.rc)
 set_module_type(pedump win32cui)
 
 add_executable(pedump pedump.c pedump.rc)
 set_module_type(pedump win32cui)
-add_target_compile_flags(pedump "-Wno-unused-but-set-variable")
+if(NOT MSVC)
+    add_target_compile_flags(pedump "-Wno-unused-but-set-variable")
+endif()
 add_importlibs(pedump msvcrt kernel32 ntdll)
 add_cd_file(TARGET pedump DESTINATION reactos/system32 FOR all)
 add_importlibs(pedump msvcrt kernel32 ntdll)
 add_cd_file(TARGET pedump DESTINATION reactos/system32 FOR all)