Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

gtest usage not implemented in CMake build system #510

@Arfrever

Description

@Arfrever
 $ grep -i gtest configure.ac CMakeLists.txt
configure.ac:AC_CHECK_PROG(GTEST_CONFIG, gtest-config, "yes")
configure.ac:AC_CHECK_LIB(gtest, main, have_gtest_lib="yes")
configure.ac:if test x"$GTEST_CONFIG" = "xyes" -a x"$have_gtest_lib" = "xyes"; then
configure.ac:  GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
configure.ac:  GTEST_LIBS=`gtest-config --ldflags --libs`
configure.ac:  AC_DEFINE(HAVE_LIB_GTEST, 1, [define if you have google gtest library])
configure.ac:  GTEST_CFLAGS=
configure.ac:  GTEST_LIBS=
configure.ac:AC_SUBST(GTEST_CFLAGS)
configure.ac:AC_SUBST(GTEST_LIBS)
$ grep -r HAVE_LIB_GTEST *
configure.ac:  AC_DEFINE(HAVE_LIB_GTEST, 1, [define if you have google gtest library])
src/config.h.cmake.in:#cmakedefine HAVE_LIB_GTEST
src/googletest.h:#ifdef HAVE_LIB_GTEST
src/googletest.h:#endif  // ! HAVE_LIB_GTEST

When using CMake, #cmakedefine HAVE_LIB_GTEST is currently always expanded to /* #undef HAVE_LIB_GTEST */.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions