Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
d57c620d
Commit
d57c620d
authored
Oct 26, 2016
by
Francis Dupont
Browse files
[master] Merged trac5051 (c++11 vs gtest)
parents
dad932d5
c1eabf46
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
d57c620d
...
...
@@ -1272,6 +1272,27 @@ AC_SUBST(GTEST_LDFLAGS)
AC_SUBST(GTEST_LDADD)
AC_SUBST(GTEST_SOURCE)
#
# Some Googletest versions bug with C++11 compilers
#
if test $enable_gtest != "no"; then
AC_MSG_CHECKING([if Google Test is compatible with the compiler])
CPPFLAGS_SAVED=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $GTEST_INCLUDES"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[#include <boost/shared_ptr.hpp>
#include <gtest/gtest.h>
void foo() {
boost::shared_ptr<int> bar;
ASSERT_TRUE(bar);
}],
[return 0;])],
[AC_MSG_RESULT(yes)],
[AC_MSG_ERROR([XXX_TRUE() Google Test macros won't compile; the most likely reason is that a later version of Google Test is required])])
CPPFLAGS=$CPPFLAGS_SAVED
fi
#
# ASIO: we extensively use it as the C++ event management module.
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment