Browse Source

Merge pull request #3751 from uykusuz/master

fixes issue #3750
Jisi Liu 8 years ago
parent
commit
9c407a16e4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      cmake/protobuf-module.cmake.in

+ 4 - 0
cmake/protobuf-module.cmake.in

@@ -150,6 +150,10 @@ if(NOT EXISTS "${Protobuf_PROTOC_EXECUTABLE}")
   get_target_property(Protobuf_PROTOC_EXECUTABLE protobuf::protoc
     IMPORTED_LOCATION_DEBUG)
 endif()
+if(NOT EXISTS "${Protobuf_PROTOC_EXECUTABLE}")
+  get_target_property(Protobuf_PROTOC_EXECUTABLE protobuf::protoc
+    IMPORTED_LOCATION_NOCONFIG)
+endif()
 
 # Version info variable
 set(Protobuf_VERSION "@protobuf_VERSION@")