Define COMPILING_FOR_WINDOWS with CMake on Windows

This commit is contained in:
Sebastian Pipping 2016-03-28 18:08:58 +02:00
parent bdee307f19
commit 37f7efb878

View File

@ -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