瀏覽代碼

Merge pull request #1578 from wal-rus/cmake-install-namespace

Add protobuf:: namespace to installed targets
Feng Xiao 9 年之前
父節點
當前提交
594ce567ab
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      cmake/install.cmake

+ 1 - 0
cmake/install.cmake

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