From: James Turner Date: Thu, 19 Sep 2013 21:07:41 +0000 (+0100) Subject: Attempting to fix import/export linkage on Windows. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d263334030cee35a84248867a7facf51a3f1abe4;p=simgear.git 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. --- 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)