Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
e76c3f83
Unverified
Commit
e76c3f83
authored
Dec 22, 2017
by
Gennadiy Civil
Committed by
GitHub
Dec 22, 2017
Browse files
Merge branch 'master' into fix-issue-776-support-autoconf-as-submodule
parents
b5b6a07d
5490beb0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
+13
-15
googlemock/CMakeLists.txt
googlemock/CMakeLists.txt
+5
-5
googletest/CMakeLists.txt
googletest/CMakeLists.txt
+8
-8
googletest/include/gtest/gtest.h
googletest/include/gtest/gtest.h
+0
-2
No files found.
googlemock/CMakeLists.txt
View file @
e76c3f83
...
...
@@ -112,11 +112,11 @@ endif()
# Install rules
if
(
INSTALL_GMOCK
)
install
(
TARGETS gmock gmock_main
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
install
(
DIRECTORY
${
gmock_SOURCE_DIR
}
/include/gmock
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
)
RUNTIME DESTINATION
"
${
CMAKE_INSTALL_BINDIR
}
"
LIBRARY DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
"
ARCHIVE DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
"
)
install
(
DIRECTORY
"
${
gmock_SOURCE_DIR
}
/include/gmock
"
DESTINATION
"
${
CMAKE_INSTALL_INCLUDEDIR
}
"
)
# configure and install pkgconfig files
configure_file
(
...
...
googletest/CMakeLists.txt
View file @
e76c3f83
...
...
@@ -74,8 +74,8 @@ config_compiler_and_linker() # Defined in internal_utils.cmake.
# Where Google Test's .h files can be found.
include_directories
(
${
gtest_SOURCE_DIR
}
/include
${
gtest_SOURCE_DIR
}
)
"
${
gtest_SOURCE_DIR
}
/include
"
"
${
gtest_SOURCE_DIR
}
"
)
# Summary of tuple support for Microsoft Visual Studio:
# Compiler version(MS) version(cmake) Support
...
...
@@ -88,7 +88,7 @@ include_directories(
if
(
MSVC AND MSVC_VERSION EQUAL 1700
)
add_definitions
(
/D _VARIADIC_MAX=10
)
endif
()
########################################################################
#
# Defines the gtest & gtest_main libraries. User tests should link
...
...
@@ -114,11 +114,11 @@ endif()
# Install rules
if
(
INSTALL_GTEST
)
install
(
TARGETS gtest gtest_main
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
install
(
DIRECTORY
${
gtest_SOURCE_DIR
}
/include/gtest
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
)
RUNTIME DESTINATION
"
${
CMAKE_INSTALL_BINDIR
}
"
ARCHIVE DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
"
LIBRARY DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
"
)
install
(
DIRECTORY
"
${
gtest_SOURCE_DIR
}
/include/gtest
"
DESTINATION
"
${
CMAKE_INSTALL_INCLUDEDIR
}
"
)
# configure and install pkgconfig files
configure_file
(
...
...
googletest/include/gtest/gtest.h
View file @
e76c3f83
...
...
@@ -1386,11 +1386,9 @@ AssertionResult CmpHelperEQ(const char* lhs_expression,
const
char
*
rhs_expression
,
const
T1
&
lhs
,
const
T2
&
rhs
)
{
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4389
/* signed/unsigned mismatch */
)
if
(
lhs
==
rhs
)
{
return
AssertionSuccess
();
}
GTEST_DISABLE_MSC_WARNINGS_POP_
()
return
CmpHelperEQFailure
(
lhs_expression
,
rhs_expression
,
lhs
,
rhs
);
}
...
...
Write
Preview
Markdown
is supported
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