summaryrefslogtreecommitdiffstats
path: root/Modules/FindProtobuf.cmake
diff options
context:
space:
mode:
authorFlorian Franzen <Florian.Franzen@gmail.com>2020-11-06 14:40:54 (GMT)
committerFlorian Franzen <Florian.Franzen@gmail.com>2020-11-06 14:40:54 (GMT)
commit2bb3c0a44b91aaee19ef2d277b2a16d45a468501 (patch)
tree69934da5709d62af4b00399586b227acdfbbd1ce /Modules/FindProtobuf.cmake
parentffda92d4bf6113d74a51ba6a97daabe56f0a3867 (diff)
downloadCMake-2bb3c0a44b91aaee19ef2d277b2a16d45a468501.zip
CMake-2bb3c0a44b91aaee19ef2d277b2a16d45a468501.tar.gz
CMake-2bb3c0a44b91aaee19ef2d277b2a16d45a468501.tar.bz2
FindProtobuf: Support files with multiple extensions (#18329)
Diffstat (limited to 'Modules/FindProtobuf.cmake')
-rw-r--r--Modules/FindProtobuf.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindProtobuf.cmake b/Modules/FindProtobuf.cmake
index 4bf54ef..0c9d695 100644
--- a/Modules/FindProtobuf.cmake
+++ b/Modules/FindProtobuf.cmake
@@ -204,7 +204,7 @@ function(protobuf_generate)
foreach(_proto ${protobuf_generate_PROTOS})
get_filename_component(_abs_file ${_proto} ABSOLUTE)
get_filename_component(_abs_dir ${_abs_file} DIRECTORY)
- get_filename_component(_basename ${_proto} NAME_WE)
+ get_filename_component(_basename ${_proto} NAME_WLE)
file(RELATIVE_PATH _rel_dir ${CMAKE_CURRENT_SOURCE_DIR} ${_abs_dir})
set(_possible_rel_dir)