Fix for BUILD_shared=OFF case on MSVC

This commit is contained in:
Sergei Nikulov 2016-03-12 17:12:25 +01:00 committed by Sebastian Pipping
parent d9a92249b1
commit 5c96e9ce60

View file

@ -57,6 +57,9 @@ if(BUILD_shared)
endif(WIN32)
else(BUILD_shared)
set(_SHARED STATIC)
if(WIN32)
add_definitions(-DXML_STATIC)
endif(WIN32)
endif(BUILD_shared)
add_library(expat ${_SHARED} ${expat_SRCS})