From 053df6907af6f29a31d5866cfc0beab8937bbaf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Terziman?= Date: Fri, 8 Nov 2013 10:20:50 +0100 Subject: [PATCH] Removed precompiled header because of a bug when switching configuration in visual studio --- code/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 5c79061fd..e07d17a3b 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -678,9 +678,14 @@ SET( assimp_src ${PUBLIC_HEADERS} ${COMPILER_HEADERS} + + # Old precompiled header + # (removed because the precompiled header is not updated when visual studio switch configuration which leads to failed compilation. + # Moreover it's a drag to recompile assimp entirely each time a modification is made to one of the included header, which is definitely counter-productive.) + AssimpPCH.cpp ) -ADD_MSVC_PRECOMPILED_HEADER("AssimpPCH.h" "AssimpPCH.cpp" assimp_src) +#ADD_MSVC_PRECOMPILED_HEADER("AssimpPCH.h" "AssimpPCH.cpp" assimp_src) IF ( ASSIMP_BUILD_STATIC_LIB ) ADD_LIBRARY( assimp STATIC