[DISK_NEW]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 12 Feb 2012 10:23:27 +0000 (10:23 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 12 Feb 2012 10:23:27 +0000 (10:23 +0000)
* Fix msvc build.

svn path=/trunk/; revision=55557

reactos/drivers/storage/class/disk_new/CMakeLists.txt

index f97376b..19225ff 100644 (file)
@@ -3,8 +3,12 @@ include_directories(..)
 add_library(disk_new SHARED data.c disk.c diskwmi.c enum.c geometry.c part.c pnp.c disk.rc)
 
 target_link_libraries(disk_new libcntpr wdmguid)
-if(NOT MSVC AND ARCH MATCHES i386)
-    add_target_compile_flags(disk_new "-mrtd -fno-builtin -Wno-unused-variable -Wno-pointer-sign")
+if(ARCH MATCHES i386)
+    if(MSVC)
+        add_target_compile_flags(disk_new "/Gz")
+    else()
+        add_target_compile_flags(disk_new "-mrtd -fno-builtin -Wno-unused-variable -Wno-pointer-sign")
+    endif()
 endif()
 
 set_module_type(disk_new kernelmodedriver)