From 0a35fa0aef8d984cd464029e482951aee2f195fa Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 1 Jun 2017 15:50:19 +0200 Subject: [PATCH] Update CMakeLists.txt Build: Make windows headers much smaller. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 53585ccbb..1b3dbeb01 100644 --- a/CMakeLists.txt +++ b/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