Mercurial > hg > orthanc
comparison Resources/CMake/GoogleTestConfiguration.cmake @ 1061:4b4ab35c04f5
fix for visual studio 2012
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 25 Jul 2014 14:34:39 +0200 |
parents | 92aa6df91c30 |
children | 88fcf73fbe39 |
comparison
equal
deleted
inserted
replaced
1060:303eb5e09a4b | 1061:4b4ab35c04f5 |
---|---|
21 | 21 |
22 set(GTEST_SOURCES | 22 set(GTEST_SOURCES |
23 ${GTEST_SOURCES_DIR}/src/gtest-all.cc | 23 ${GTEST_SOURCES_DIR}/src/gtest-all.cc |
24 ) | 24 ) |
25 | 25 |
26 # https://code.google.com/p/googletest/issues/detail?id=412 | |
27 if (MSVC) # VS2012 does not support tuples correctly yet | |
28 add_definitions(/D _VARIADIC_MAX=10) | |
29 endif() | |
30 | |
26 else() | 31 else() |
27 include(FindGTest) | 32 include(FindGTest) |
28 if (NOT GTEST_FOUND) | 33 if (NOT GTEST_FOUND) |
29 message(FATAL_ERROR "Unable to find GoogleTest") | 34 message(FATAL_ERROR "Unable to find GoogleTest") |
30 endif() | 35 endif() |