Преглед на файлове

Removed precompiled header because of a bug when switching configuration in visual studio

Léo Terziman преди 12 години
родител
ревизия
053df6907a
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      code/CMakeLists.txt

+ 6 - 1
code/CMakeLists.txt

@@ -678,9 +678,14 @@ SET( assimp_src
 
 
 	${PUBLIC_HEADERS}
 	${PUBLIC_HEADERS}
 	${COMPILER_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 )
 IF ( ASSIMP_BUILD_STATIC_LIB )
 	ADD_LIBRARY( assimp STATIC
 	ADD_LIBRARY( assimp STATIC