[ROSAPPS] put -Wno-unused-but-set-variable between a if(NOT MSVC) to really make...
[reactos.git] / rosapps / applications / sysutils / utils / rosperf / CMakeLists.txt
index 0bda350..92d9621 100644 (file)
@@ -11,6 +11,8 @@ list(APPEND SOURCE
 
 add_executable(rosperf ${SOURCE} rosperf.rc)
 set_module_type(rosperf win32cui UNICODE)
-add_target_compile_flags(rosperf "-Wno-unused-but-set-variable")
+if(NOT MSVC)
+    add_target_compile_flags(rosperf "-Wno-unused-but-set-variable")
+endif()
 add_importlibs(rosperf version msimg32 gdi32 shell32 advapi32 user32 ntdll msvcrt kernel32)
 add_cd_file(TARGET rosperf DESTINATION reactos/system32 FOR all)