From d263334030cee35a84248867a7facf51a3f1abe4 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 19 Sep 2013 22:07:41 +0100 Subject: [PATCH] Attempting to fix import/export linkage on Windows. Hopefully this tells the Expat headers not to do any clever declspec(import) or export stuff, which we don't want since we only use the symbols within SimGearCore, and don't export them. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e277761a..f0c85d8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,7 +230,9 @@ if (SYSTEM_EXPAT) else() message(STATUS "Using built-in expat code") - add_definitions(-DHAVE_EXPAT_CONFIG_H) + # XML_STATIC is important to avoid sg_expat_external.h + # declaring symbols as declspec(import) + add_definitions(-DHAVE_EXPAT_CONFIG_H -DXML_STATIC) set(EXPAT_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/3rdparty/expat ${PROJECT_BINARY_DIR}/3rdparty/expat) -- 2.39.5