From 37f7efb878660d55ff5fd67ad2cda1c103297df6 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 28 Mar 2016 18:08:58 +0200 Subject: [PATCH] Define COMPILING_FOR_WINDOWS with CMake on Windows --- expat/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index d053a1e7..c749f548 100755 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -41,6 +41,9 @@ include_directories(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/lib) if(MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS -wd4996) endif(MSVC) +if(WIN32) + add_definitions(-DCOMPILING_FOR_WINDOWS) +endif(WIN32) set(expat_SRCS lib/xmlparse.c