Browse Source

FindProtobuf: Support files with multiple extensions (#18329)

Florian Franzen 5 years ago
parent
commit
2bb3c0a44b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/FindProtobuf.cmake

+ 1 - 1
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)