Browse Source

Update CMakeLists.txt

Build: Make windows headers much smaller.
Kim Kulling 8 năm trước cách đây
mục cha
commit
0a35fa0aef
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      CMakeLists.txt

+ 4 - 0
CMakeLists.txt

@@ -89,6 +89,10 @@ OPTION ( BUILD_DOCS
    OFF
 )
 
+if (WIN32)
+    add_definitions( -DWIN32_LEAN_AND_MEAN )
+endif()
+
 IF(MSVC)
   set (CMAKE_PREFIX_PATH "D:\\libs\\devil")
   OPTION( ASSIMP_INSTALL_PDB