summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2019-07-02 12:40:20 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2019-07-03 16:49:49 (GMT)
commit59a30f2acfdf4bd9d9bd4fffbb9945a372957499 (patch)
tree55b67a7f539c848b065dd50e80890b27feea0e80 /Modules
parent194adaf985e86e4cdcc61dc8abd9be4d1a3498b9 (diff)
downloadCMake-59a30f2acfdf4bd9d9bd4fffbb9945a372957499.zip
CMake-59a30f2acfdf4bd9d9bd4fffbb9945a372957499.tar.gz
CMake-59a30f2acfdf4bd9d9bd4fffbb9945a372957499.tar.bz2
FindProtobuf: libprotoc also needs C++11
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindProtobuf.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindProtobuf.cmake b/Modules/FindProtobuf.cmake
index 085e96c..670352c 100644
--- a/Modules/FindProtobuf.cmake
+++ b/Modules/FindProtobuf.cmake
@@ -582,6 +582,11 @@ if(Protobuf_INCLUDE_DIR)
set_target_properties(protobuf::libprotoc PROPERTIES
IMPORTED_LOCATION_DEBUG "${Protobuf_PROTOC_LIBRARY_DEBUG}")
endif()
+ if (Protobuf_VERSION VERSION_GREATER_EQUAL "3.6")
+ set_property(TARGET protobuf::libprotoc APPEND PROPERTY
+ INTERFACE_COMPILE_FEATURES cxx_std_11
+ )
+ endif()
if(UNIX AND TARGET Threads::Threads)
set_property(TARGET protobuf::libprotoc APPEND PROPERTY
INTERFACE_LINK_LIBRARIES Threads::Threads)