From 5c96e9ce60b155f354293dc7ee4a7c3e2009d4bc Mon Sep 17 00:00:00 2001 From: Sergei Nikulov Date: Sat, 12 Mar 2016 17:12:25 +0100 Subject: [PATCH] Fix for BUILD_shared=OFF case on MSVC --- expat/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index 1b8e4cab..d053a1e7 100755 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -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}) -- 2.40.0