Install the configs with the right naming.
@@ -415,7 +415,7 @@ INSTALL (EXPORT UPNP
INCLUDE (CMakePackageConfigHelpers)
CONFIGURE_PACKAGE_CONFIG_FILE (
- IXML.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/IXML.cmake
+ IXML.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/IXMLConfig.cmake
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/UPNP
)
@@ -425,7 +425,7 @@ WRITE_BASIC_PACKAGE_VERSION_FILE (IXMLVersion.cmake
)
CONFIGURE_PACKAGE_CONFIG_FILE (
- UPNP.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/UPNP.cmake
+ UPNP.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/UPNPConfig.cmake
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/UPNP
)
@@ -435,11 +435,11 @@ WRITE_BASIC_PACKAGE_VERSION_FILE (UPNPVersion.cmake
)
INSTALL (FILES
- ${CMAKE_CURRENT_BINARY_DIR}/IXML.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/IXMLConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/IXMLVersion.cmake
- ${CMAKE_CURRENT_BINARY_DIR}/UPNP.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/UPNPConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/UPNPVersion.cmake
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/UPNP
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/
)
SET (VERSION ${UPNP_VERSION_STRING})
