No need for ixml to build everything if only shared or static upnp is built.
@@ -15,6 +15,7 @@ set (IXML_SOURCES
src/nodeList.c
)
+if (UPNP_BUILD_SHARED)
add_library (ixml_shared SHARED
${IXML_SOURCES}
)
@@ -66,7 +67,9 @@ install (TARGETS ixml_shared
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT UPNP_RunTime
)
+endif()
+if (UPNP_BUILD_STATIC)
add_library (ixml_static STATIC
${IXML_SOURCES}
)
@@ -112,6 +115,7 @@ install (TARGETS ixml_static
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT UPNP_RunTime
)
+endif()
install (EXPORT IXML
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/IXML
