summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSibi Siddharthan <sibisiddharthan.github@gmail.com>2020-07-01 19:11:17 (GMT)
committerSibi Siddharthan <sibisiddharthan.github@gmail.com>2020-07-01 19:11:17 (GMT)
commit667a229e8dc0648eba3cceb4202e967c17301817 (patch)
tree2ef9f2f49c6064d796d37b9480ae82f1b159788c /Modules
parent64d37b495343669a0b937715602697a66e446ba8 (diff)
downloadCMake-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.cmake2
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)