浏览代码

add protobuf:: namespace to installed targets

Walter Gray 9 年之前
父节点
当前提交
28f35b4f16
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      cmake/install.cmake

+ 1 - 0
cmake/install.cmake

@@ -92,6 +92,7 @@ endif()
 
 
 install(EXPORT protobuf-targets
 install(EXPORT protobuf-targets
   DESTINATION "${CMAKE_INSTALL_CMAKEDIR}"
   DESTINATION "${CMAKE_INSTALL_CMAKEDIR}"
+  NAMESPACE protobuf::
   COMPONENT protobuf-export)
   COMPONENT protobuf-export)
 
 
 configure_file(protobuf-config.cmake.in
 configure_file(protobuf-config.cmake.in