mirror of
https://github.com/google/googletest.git
synced 2025-12-08 01:36:50 +08:00
In case CMAKE_BUILD_TYPE is set to Debug the gtest library is name libgtestd.a but the link command returned from gtest.pc is '-lgtest' (without the debug d) and so the linking of dependent packages fails (see [1] for a buildroot failure example). Enhance the gtest.pc ang gmock.pc generation to honour the debug 'd'. [1] http://lists.busybox.net/pipermail/buildroot/2021-October/626382.html Signed-off-by: Peter Seiderer <ps.report@gmx.net>
11 lines
362 B
PkgConfig
11 lines
362 B
PkgConfig
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
|
|
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
|
|
|
|
Name: gmock
|
|
Description: GoogleMock (without main() function)
|
|
Version: @PROJECT_VERSION@
|
|
URL: https://github.com/google/googletest
|
|
Requires: gtest = @PROJECT_VERSION@
|
|
Libs: -L${libdir} -lgmock@DEBUG_POSTFIX@ @CMAKE_THREAD_LIBS_INIT@
|
|
Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@
|