Commit d9190f33 authored by Adam Martin's avatar Adam Martin Committed by Brad King
Browse files

FindProtobuf: Search for debug library named with `d` suffix

Protobuf now provides a CMake-based build system that optionally adds a
suffix to the debug library name [1].  Update our `find_library` call to
consider names with the default value for this suffix, `d`.

parent 656ebaca
Pipeline #30369 passed with stage
...@@ -264,7 +264,7 @@ function(_protobuf_find_libraries name filename) ...@@ -264,7 +264,7 @@ function(_protobuf_find_libraries name filename)
mark_as_advanced(${name}_LIBRARY_RELEASE) mark_as_advanced(${name}_LIBRARY_RELEASE)
find_library(${name}_LIBRARY_DEBUG find_library(${name}_LIBRARY_DEBUG
NAMES ${filename} NAMES ${filename}d ${filename}
PATHS ${Protobuf_SRC_ROOT_FOLDER}/vsprojects/${_PROTOBUF_ARCH_DIR}Debug) PATHS ${Protobuf_SRC_ROOT_FOLDER}/vsprojects/${_PROTOBUF_ARCH_DIR}Debug)
mark_as_advanced(${name}_LIBRARY_DEBUG) mark_as_advanced(${name}_LIBRARY_DEBUG)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment