add TINYXML2_EXPORT define when building shared lib

otherwise it exports no symbols and msvc does not create import .lib
This commit is contained in:
Leonid Onokhov 2013-12-12 15:07:34 +03:00
parent 61871d60a6
commit 3dacebf8ee
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ if(BUILD_STATIC_LIBS)
endif(BUILD_STATIC_LIBS)
add_library(tinyxml2 SHARED tinyxml2.cpp tinyxml2.h)
set_target_properties(tinyxml2 PROPERTIES
COMPILE_DEFINITIONS "TINYXML2_EXPORT"
VERSION "${GENERIC_LIB_VERSION}"
SOVERSION "${GENERIC_LIB_SOVERSION}")