From be13314b2ac34993583dbb98c376eac5dd7237fc Mon Sep 17 00:00:00 2001 From: Boris Broenner Date: Sat, 14 Oct 2017 00:41:40 +0200 Subject: fixes issue #3750 In protobuf-module.cmake: in addition to checking for release or debug variants of protoc's location we should also check the configuration "noconfig". --- cmake/protobuf-module.cmake.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake') 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@") -- cgit v1.2.3