Define COMPILING_FOR_WINDOWS with CMake on Windows
This commit is contained in:
parent
bdee307f19
commit
37f7efb878
@ -41,6 +41,9 @@ include_directories(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/lib)
|
|||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS -wd4996)
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS -wd4996)
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
if(WIN32)
|
||||||
|
add_definitions(-DCOMPILING_FOR_WINDOWS)
|
||||||
|
endif(WIN32)
|
||||||
|
|
||||||
set(expat_SRCS
|
set(expat_SRCS
|
||||||
lib/xmlparse.c
|
lib/xmlparse.c
|
||||||
|
Loading…
Reference in New Issue
Block a user