Author: akhaldi
Date: Sun Feb 12 10:23:27 2012
New Revision: 55557
URL:
http://svn.reactos.org/svn/reactos?rev=55557&view=rev
Log:
[DISK_NEW]
* Fix msvc build.
Modified:
trunk/reactos/drivers/storage/class/disk_new/CMakeLists.txt
Modified: trunk/reactos/drivers/storage/class/disk_new/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/disk…
==============================================================================
--- trunk/reactos/drivers/storage/class/disk_new/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/disk_new/CMakeLists.txt [iso-8859-1] Sun Feb 12
10:23:27 2012
@@ -3,8 +3,12 @@
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)