diff --git a/PackageConfig.cmake.in b/PackageConfig.cmake.in index fb55e61b0..84bd2a406 100644 --- a/PackageConfig.cmake.in +++ b/PackageConfig.cmake.in @@ -14,11 +14,11 @@ @PACKAGE_INIT@ -add_library(__zenohc_static STATIC IMPORTED) +add_library(__zenohc_static STATIC IMPORTED GLOBAL) add_library(zenohc::static ALIAS __zenohc_static) set_property(TARGET __zenohc_static PROPERTY IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/@libzenohc_static@") -add_library(__zenohc_lib STATIC IMPORTED) +add_library(__zenohc_lib STATIC IMPORTED GLOBAL) add_library(zenohc::lib ALIAS __zenohc_lib) set_property(TARGET __zenohc_lib PROPERTY IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/@libzenohc@") target_include_directories(__zenohc_lib INTERFACE "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@")