Update CMakeLists.txt
authorKim Kulling <kimkulling@users.noreply.github.com>
Thu, 1 Jun 2017 13:50:19 +0000 (15:50 +0200)
committerGitHub <noreply@github.com>
Thu, 1 Jun 2017 13:50:19 +0000 (15:50 +0200)
Build: Make windows headers much smaller.

CMakeLists.txt

index 53585cc..1b3dbeb 100644 (file)
@@ -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