build: add libuv:: namespace to libuvConfig.cmake (#3596)

This may be breaking, but is still quite new, and seems to follow cmake
best practices.
This commit is contained in:
AJ Heller 2023-01-19 14:07:29 -08:00 committed by GitHub
parent 17ea56ee73
commit 0235e150e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -736,7 +736,9 @@ install(FILES ${PROJECT_BINARY_DIR}/libuv-static.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
install(TARGETS uv_a EXPORT libuvConfig install(TARGETS uv_a EXPORT libuvConfig
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(EXPORT libuvConfig DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libuv) install(EXPORT libuvConfig
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libuv
NAMESPACE libuv::)
if(LIBUV_BUILD_SHARED) if(LIBUV_BUILD_SHARED)
# The version in the filename is mirroring the behaviour of autotools. # The version in the filename is mirroring the behaviour of autotools.