瀏覽代碼

Update CMakeLists.txt

Build: Make windows headers much smaller.
Kim Kulling 8 年之前
父節點
當前提交
0a35fa0aef
共有 1 個文件被更改,包括 4 次插入0 次删除
  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