Skip to content
Snippets Groups Projects
Commit 90466a4e authored by David Neto's avatar David Neto
Browse files

Move ::testing::Combine workaround to top

The fix must be visible to compilation in the effcee/ tree
as well.
parent 847773f3
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,12 @@ enable_testing()
option(EFFCEE_BUILD_TESTING "Enable testing for Effcee" ON)
if(${EFFCEE_BUILD_TESTING})
message(STATUS "Configuring Effcee to build tests.")
if(MSVC)
# Our tests use ::testing::Combine. Force the ability to use it, working
# around googletest's possibly faulty compiler detection logic.
# See https://github.com/google/googletest/issues/1352
add_definitions(-DGTEST_HAS_COMBINE=1)
endif(MSVC)
else()
message(STATUS "Configuring Effcee to avoid building tests.")
endif()
......
......@@ -24,11 +24,6 @@ endif()
# Configure third party projects.
if(EFFCEE_BUILD_TESTING)
# Our tests use ::testing::Combine. Force the ability to use it, working
# around googletest's possibly faulty compiler detection logic.
# See https://github.com/google/googletest/issues/1352
add_definitions(-DGTEST_HAS_COMBINE=1)
if (NOT TARGET gmock)
if (IS_DIRECTORY ${EFFCEE_GOOGLETEST_DIR})
add_subdirectory(${EFFCEE_GOOGLETEST_DIR} googletest)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment