MSVC: exclude precompiled headers from tinyxml sources

stable-5.2
Sven Eberhardt 2010-01-04 03:15:50 +01:00
parent f2bd73da47
commit 652481f6a1
2 changed files with 3 additions and 1 deletions

View File

@ -692,7 +692,8 @@ if(HAVE_PRECOMPILED_HEADERS)
get_property(OC_SOURCES TARGET clonk PROPERTY SOURCES)
foreach(FILE ${OC_SOURCES})
get_filename_component(FILE_EXT ${FILE} EXT)
if(FILE_EXT STREQUAL ".cpp")
get_filename_component(FILE_NAME_WE ${FILE} NAME_WE)
if(FILE_EXT STREQUAL ".cpp" AND NOT FILE_NAME_WE MATCHES "tiny.*")
# This check is necessary since gzio.c gets compiled as C
# code, which can't use C++ PCH.
set_property(SOURCE ${FILE} PROPERTY COMPILE_FLAGS /YuC4Include.h)

View File

@ -16,6 +16,7 @@
* See clonk_trademark_license.txt for full license.
*/
#include "C4Include.h"
#include <StdMesh.h>
#ifdef _MSC_VER