summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-11-09 13:03:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-11-09 13:03:39 (GMT)
commit63a1917d098922b59bbba8fdeb42519363d5ba0d (patch)
tree71a2535761ae32641acdce496768d61cb12ca622
parent2b0a1180b0a99fb05ccb08997daf5421bb7a5f2e (diff)
parent2bb3c0a44b91aaee19ef2d277b2a16d45a468501 (diff)
downloadCMake-63a1917d098922b59bbba8fdeb42519363d5ba0d.zip
CMake-63a1917d098922b59bbba8fdeb42519363d5ba0d.tar.gz
CMake-63a1917d098922b59bbba8fdeb42519363d5ba0d.tar.bz2
Merge topic 'FindProtobuf-multiple-extensions'
2bb3c0a44b FindProtobuf: Support files with multiple extensions (#18329) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5476
-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)