Ver Fonte

Update CMakeLists.txt

Build: Make windows headers much smaller.
Kim Kulling há 8 anos atrás
pai
commit
0a35fa0aef
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      CMakeLists.txt

+ 4 - 0
CMakeLists.txt

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