Define XML_STATIC only for MSVC

This commit is contained in:
Luis Díaz Más 2018-11-26 13:33:11 +01:00
parent 4752b66bed
commit bc940231e7

View File

@ -38,6 +38,10 @@ target_include_directories(xmp
${EXPAT_INCLUDE_DIR}
)
if (MSVC)
target_compile_definitions(xmp PRIVATE XML_STATIC)
endif()
check_include_file( "stdint.h" EXV_HAVE_STDINT_H )
if (EXV_HAVE_STDINT_H)
target_compile_definitions(xmp PRIVATE EXV_HAVE_STDINT_H)