about summary refs log tree commit diff
path: root/cmake/FindProtobufTargets.cmake
diff options
context:
space:
mode:
authorTakashi Matsuo <tmatsuo@google.com>2019-07-11T20·11-0700
committerGitHub <noreply@github.com>2019-07-11T20·11-0700
commitaefb8c98b00ffd23543f295b9b5b70532f1afee9 (patch)
treeb928171af159ddbf109a77f35b2067503c23775b /cmake/FindProtobufTargets.cmake
parent620940a411b3723e1641dc253e5a15d27852f515 (diff)
Add ci scripts (#1)
* Add ci scripts

* Move config files to ci/kokoro/docker

* Remove dump-logs etc

* Simplified grpc installation

* Add Ubuntu 16.04 kokoro config

* Address code review
Diffstat (limited to 'cmake/FindProtobufTargets.cmake')
-rw-r--r--cmake/FindProtobufTargets.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/FindProtobufTargets.cmake b/cmake/FindProtobufTargets.cmake
index db260280d3cd..28cb36fca8c5 100644
--- a/cmake/FindProtobufTargets.cmake
+++ b/cmake/FindProtobufTargets.cmake
@@ -99,14 +99,14 @@ if (protobuf_FOUND)
                    "ProtobufTargets_FOUND = ${ProtobufTargets_FOUND}"
                    " ProtobufTargets_VERSION = ${ProtobufTargets_VERSION}")
     endif ()
-else()
+else ()
     find_package(Protobuf QUIET)
     if (Protobuf_FOUND)
         set(ProtobufTargets_FOUND 1)
         set(ProtobufTargets_VERSION ${Protobuf_VERSION})
 
         if (NOT TARGET protobuf::libprotobuf)
-            add_library(protobuf::libprotobuf INTERFACE IMPORTED)
+            add_library(protobuf::libprotobuf IMPORTED INTERFACE)
             set_property(TARGET protobuf::libprotobuf
                          PROPERTY INTERFACE_INCLUDE_DIRECTORIES
                                   ${Protobuf_INCLUDE_DIR})
@@ -117,7 +117,7 @@ else()
         endif ()
 
         if (NOT TARGET protobuf::libprotobuf-lite)
-            add_library(protobuf::libprotobuf-lite INTERFACE IMPORTED)
+            add_library(protobuf::libprotobuf-lite IMPORTED INTERFACE)
             set_property(TARGET protobuf::libprotobuf-lite
                          PROPERTY INTERFACE_INCLUDE_DIRECTORIES
                                   ${Protobuf_INCLUDE_DIR})
@@ -128,7 +128,7 @@ else()
         endif ()
 
         if (NOT TARGET protobuf::libprotoc)
-            add_library(protobuf::libprotoc INTERFACE IMPORTED)
+            add_library(protobuf::libprotoc IMPORTED INTERFACE)
             set_property(TARGET protobuf::libprotoc
                          PROPERTY INTERFACE_INCLUDE_DIRECTORIES
                                   ${Protobuf_INCLUDE_DIR})