aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGravatar Boris Broenner <uykusuz@hintergarten.de>2017-10-14 00:41:40 +0200
committerGravatar Boris Broenner <uykusuz@hintergarten.de>2017-10-14 00:41:40 +0200
commitbe13314b2ac34993583dbb98c376eac5dd7237fc (patch)
tree848b9536f61ff2b3ef7b099ae89f6c8d2607c0ea /cmake
parentf850188e6e1021b4fe21ecb0aca548a54c272ce5 (diff)
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".
Diffstat (limited to 'cmake')
-rw-r--r--cmake/protobuf-module.cmake.in4
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@")