mirror of https://github.com/AxioDL/tinyxml2.git
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:
parent
61871d60a6
commit
3dacebf8ee
|
@ -53,6 +53,7 @@ if(BUILD_STATIC_LIBS)
|
||||||
endif(BUILD_STATIC_LIBS)
|
endif(BUILD_STATIC_LIBS)
|
||||||
add_library(tinyxml2 SHARED tinyxml2.cpp tinyxml2.h)
|
add_library(tinyxml2 SHARED tinyxml2.cpp tinyxml2.h)
|
||||||
set_target_properties(tinyxml2 PROPERTIES
|
set_target_properties(tinyxml2 PROPERTIES
|
||||||
|
COMPILE_DEFINITIONS "TINYXML2_EXPORT"
|
||||||
VERSION "${GENERIC_LIB_VERSION}"
|
VERSION "${GENERIC_LIB_VERSION}"
|
||||||
SOVERSION "${GENERIC_LIB_SOVERSION}")
|
SOVERSION "${GENERIC_LIB_SOVERSION}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue