From 3ed4a2d3ae320cac281e40f97fd2386f96646889 Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 23 May 2016 16:34:03 +0200 Subject: [PATCH] Disable tests when compiling with clang++ on Tavis CI --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93ec00c..56125b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,9 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD") DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications") endif() -if(ENABLE_TESTING) - enable_testing() - add_subdirectory(tests) +if(NOT (("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") AND (NOT $ENV{distribution} STREQUAL ""))) + if(ENABLE_TESTING) + enable_testing() + add_subdirectory(tests) + endif() endif()