https://github.com/Kitware/CMake
Revision 1ca981d087a82c51da685547111d66d22d5ca442 authored by Adam Martin on 10 October 2016, 19:17:10 UTC, committed by GitHub on 10 October 2016, 19:17:10 UTC
In the call to find_library searching for the debug libraries it doesn't take into account the debug postfix used when building the library using the default provided CMakeLists.txt (example)[https://github.com/google/protobuf/blob/master/cmake/libprotobuf.cmake#L71], This change adds an alternate name that includes the default postfix of 'd' first in the list of names to find. Since protobuf doesn't use the built-in postfix variable the only choice is to use the default value for the protobuf_DEBUG_POSTFIX variable as that is only set when building protobuf and not when searching for it.
1 parent 656ebac
Tip revision: 1ca981d087a82c51da685547111d66d22d5ca442 authored by Adam Martin on 10 October 2016, 19:17:10 UTC
Added the default value of protobuf_DEBUG_POSTFIX when searching for the debug library
Added the default value of protobuf_DEBUG_POSTFIX when searching for the debug library
Tip revision: 1ca981d
File | Mode | Size |
---|---|---|
Auxiliary | ||
Help | ||
Licenses | ||
Modules | ||
Packaging | ||
Source | ||
Templates | ||
Tests | ||
Utilities | ||
.clang-format | -rw-r--r-- | 217 bytes |
.gitattributes | -rw-r--r-- | 658 bytes |
.gitignore | -rw-r--r-- | 64 bytes |
.hooks-config.bash | -rw-r--r-- | 435 bytes |
CMakeCPack.cmake | -rw-r--r-- | 7.6 KB |
CMakeCPackOptions.cmake.in | -rw-r--r-- | 12.8 KB |
CMakeGraphVizOptions.cmake | -rw-r--r-- | 153 bytes |
CMakeLists.txt | -rw-r--r-- | 29.4 KB |
CMakeLogo.gif | -rw-r--r-- | 4.4 KB |
CONTRIBUTING.rst | -rw-r--r-- | 1.7 KB |
CTestConfig.cmake | -rw-r--r-- | 440 bytes |
CTestCustom.cmake.in | -rw-r--r-- | 5.8 KB |
CompileFlags.cmake | -rw-r--r-- | 2.9 KB |
Copyright.txt | -rw-r--r-- | 4.8 KB |
DartConfig.cmake | -rw-r--r-- | 374 bytes |
README.rst | -rw-r--r-- | 2.9 KB |
bootstrap | -rwxr-xr-x | 46.6 KB |
cmake_uninstall.cmake.in | -rw-r--r-- | 790 bytes |
configure | -rwxr-xr-x | 99 bytes |
doxygen.config | -rw-r--r-- | 27.4 KB |
Computing file changes ...