diff Resources/CMake/GoogleTestConfiguration.cmake @ 2450:ade8b4ddd8a6

Static linking against libuuid
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 03 Jan 2018 11:02:59 +0100
parents e6af2c5cd0f1
children d61e73357674
line wrap: on
line diff
--- a/Resources/CMake/GoogleTestConfiguration.cmake	Wed Jan 03 08:41:14 2018 +0100
+++ b/Resources/CMake/GoogleTestConfiguration.cmake	Wed Jan 03 11:02:59 2018 +0100
@@ -47,7 +47,11 @@
   if (MSVC) # VS2012 does not support tuples correctly yet
     add_definitions(/D _VARIADIC_MAX=10)
   endif()
-
+  
+  if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
+    add_definitions(-DGTEST_HAS_CLONE=0)
+  endif()
+  
   source_group(ThirdParty\\GoogleTest REGULAR_EXPRESSION ${GOOGLE_TEST_SOURCES_DIR}/.*)
 
 else()