Merge branch 'master' into fix-issue-776-support-autoconf-as-submodule
This commit is contained in:
commit
e76c3f837c
|
@ -112,11 +112,11 @@ endif()
|
||||||
# Install rules
|
# Install rules
|
||||||
if(INSTALL_GMOCK)
|
if(INSTALL_GMOCK)
|
||||||
install(TARGETS gmock gmock_main
|
install(TARGETS gmock gmock_main
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
||||||
install(DIRECTORY ${gmock_SOURCE_DIR}/include/gmock
|
install(DIRECTORY "${gmock_SOURCE_DIR}/include/gmock"
|
||||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||||
|
|
||||||
# configure and install pkgconfig files
|
# configure and install pkgconfig files
|
||||||
configure_file(
|
configure_file(
|
||||||
|
|
|
@ -74,8 +74,8 @@ config_compiler_and_linker() # Defined in internal_utils.cmake.
|
||||||
|
|
||||||
# Where Google Test's .h files can be found.
|
# Where Google Test's .h files can be found.
|
||||||
include_directories(
|
include_directories(
|
||||||
${gtest_SOURCE_DIR}/include
|
"${gtest_SOURCE_DIR}/include"
|
||||||
${gtest_SOURCE_DIR})
|
"${gtest_SOURCE_DIR}")
|
||||||
|
|
||||||
# Summary of tuple support for Microsoft Visual Studio:
|
# Summary of tuple support for Microsoft Visual Studio:
|
||||||
# Compiler version(MS) version(cmake) Support
|
# Compiler version(MS) version(cmake) Support
|
||||||
|
@ -88,7 +88,7 @@ include_directories(
|
||||||
if (MSVC AND MSVC_VERSION EQUAL 1700)
|
if (MSVC AND MSVC_VERSION EQUAL 1700)
|
||||||
add_definitions(/D _VARIADIC_MAX=10)
|
add_definitions(/D _VARIADIC_MAX=10)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
#
|
#
|
||||||
# Defines the gtest & gtest_main libraries. User tests should link
|
# Defines the gtest & gtest_main libraries. User tests should link
|
||||||
|
@ -114,11 +114,11 @@ endif()
|
||||||
# Install rules
|
# Install rules
|
||||||
if(INSTALL_GTEST)
|
if(INSTALL_GTEST)
|
||||||
install(TARGETS gtest gtest_main
|
install(TARGETS gtest gtest_main
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
||||||
install(DIRECTORY ${gtest_SOURCE_DIR}/include/gtest
|
install(DIRECTORY "${gtest_SOURCE_DIR}/include/gtest"
|
||||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||||
|
|
||||||
# configure and install pkgconfig files
|
# configure and install pkgconfig files
|
||||||
configure_file(
|
configure_file(
|
||||||
|
|
|
@ -1386,11 +1386,9 @@ AssertionResult CmpHelperEQ(const char* lhs_expression,
|
||||||
const char* rhs_expression,
|
const char* rhs_expression,
|
||||||
const T1& lhs,
|
const T1& lhs,
|
||||||
const T2& rhs) {
|
const T2& rhs) {
|
||||||
GTEST_DISABLE_MSC_WARNINGS_PUSH_(4389 /* signed/unsigned mismatch */)
|
|
||||||
if (lhs == rhs) {
|
if (lhs == rhs) {
|
||||||
return AssertionSuccess();
|
return AssertionSuccess();
|
||||||
}
|
}
|
||||||
GTEST_DISABLE_MSC_WARNINGS_POP_()
|
|
||||||
|
|
||||||
return CmpHelperEQFailure(lhs_expression, rhs_expression, lhs, rhs);
|
return CmpHelperEQFailure(lhs_expression, rhs_expression, lhs, rhs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user