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.
This commit is contained in:
parent
b2cea62189
commit
d263334030
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user