Little resort.
@@ -27,6 +27,15 @@ if (UPNP_BUILD_SHARED)
add_library (IXML::Shared ALIAS ixml_shared)
+ set_target_properties (ixml_shared PROPERTIES
+ C_VISIBILITY_PRESET "hidden"
+ EXPORT_NAME IXML::Shared
+ OUTPUT_NAME ixml
+ PUBLIC_HEADER "${IXML_HEADERS}"
+ SOVERSION ${IXML_VERSION_MAJOR}
+ VERSION ${IXML_VERSION_STRING}
+ )
+
target_compile_definitions (ixml_shared
PRIVATE $<$<BOOL:${IXML_HAVE_SCRIPTSUPPORT}>:IXML_HAVE_SCRIPTSUPPORT>
PRIVATE LIBUPNP_EXPORTS
@@ -44,15 +53,6 @@ if (UPNP_BUILD_SHARED)
PUBLIC $<BUILD_INTERFACE:${PUPNP_SOURCE_DIR}/upnp/inc/>
)
- set_target_properties (ixml_shared PROPERTIES
- C_VISIBILITY_PRESET "hidden"
- EXPORT_NAME IXML::Shared
- OUTPUT_NAME ixml
- PUBLIC_HEADER "${IXML_HEADERS}"
- SOVERSION ${IXML_VERSION_MAJOR}
- VERSION ${IXML_VERSION_STRING}
- )
-
install (TARGETS ixml_shared
EXPORT IXML
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
