diff options
author | Sibi Siddharthan <sibisiddharthan.github@gmail.com> | 2020-07-01 19:11:17 (GMT) |
---|---|---|
committer | Sibi Siddharthan <sibisiddharthan.github@gmail.com> | 2020-07-01 19:11:17 (GMT) |
commit | 667a229e8dc0648eba3cceb4202e967c17301817 (patch) | |
tree | 2ef9f2f49c6064d796d37b9480ae82f1b159788c /Modules | |
parent | 64d37b495343669a0b937715602697a66e446ba8 (diff) | |
download | CMake-667a229e8dc0648eba3cceb4202e967c17301817.zip CMake-667a229e8dc0648eba3cceb4202e967c17301817.tar.gz CMake-667a229e8dc0648eba3cceb4202e967c17301817.tar.bz2 |
FindProtobuf use NAMES_PER_DIR
Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindProtobuf.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindProtobuf.cmake b/Modules/FindProtobuf.cmake index e09717d..f6d8fe3 100644 --- a/Modules/FindProtobuf.cmake +++ b/Modules/FindProtobuf.cmake @@ -376,11 +376,13 @@ function(_protobuf_find_libraries name filename) else() find_library(${name}_LIBRARY_RELEASE NAMES ${filename} + NAMES_PER_DIR PATHS ${Protobuf_SRC_ROOT_FOLDER}/vsprojects/${_PROTOBUF_ARCH_DIR}Release) mark_as_advanced(${name}_LIBRARY_RELEASE) find_library(${name}_LIBRARY_DEBUG NAMES ${filename}d ${filename} + NAMES_PER_DIR PATHS ${Protobuf_SRC_ROOT_FOLDER}/vsprojects/${_PROTOBUF_ARCH_DIR}Debug) mark_as_advanced(${name}_LIBRARY_DEBUG) |