diff options
author | Jisi Liu <liujisi@google.com> | 2017-10-18 15:39:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-18 15:39:12 -0700 |
commit | 9c407a16e4b64e8329da8508a56dd4ba260ebcd5 (patch) | |
tree | 8c65570e3b67530b0fcf21551785a7bfd46c661e /cmake | |
parent | dedf9041c023d63fc74fb9386f9ea62e33cb16c9 (diff) | |
parent | be13314b2ac34993583dbb98c376eac5dd7237fc (diff) | |
download | protobuf-9c407a16e4b64e8329da8508a56dd4ba260ebcd5.tar.gz protobuf-9c407a16e4b64e8329da8508a56dd4ba260ebcd5.tar.bz2 protobuf-9c407a16e4b64e8329da8508a56dd4ba260ebcd5.zip |
Merge pull request #3751 from uykusuz/master
fixes issue #3750
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/protobuf-module.cmake.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/protobuf-module.cmake.in b/cmake/protobuf-module.cmake.in index 85f891be..74c54887 100644 --- a/cmake/protobuf-module.cmake.in +++ b/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@") |